Closed valentinyanakiev closed 6 days ago
The pull request modifies entitlement checks within the ContributorAccountView
and CampaignBlock
components, enhancing the logic that determines user privileges based on account entitlements. It introduces a new isAvailable
property to the Entitlement
type and adjusts the filtering logic in the filterAndMapEnabledEntitlements
function. Additionally, the GraphQL query for CampaignBlock
has been updated to include more detailed account information. These changes refine the conditions under which users can create or delete entities and improve access control in the user interface.
File | Change Summary |
---|---|
src/domain/community/contributor/Account/ContributorAccountView.tsx |
Updated entitlement checks to include enabled status and invert conditions for various limits. |
src/domain/license/plans/utils/filterAndMapEnabledEntitlements.ts |
Added isAvailable property to Entitlement type and modified filtering logic in filterAndMapEnabledEntitlements . |
src/main/topLevelPages/myDashboard/Campaigns/CampaignBlock.graphql |
Modified CampaignBlockCredentials query to include additional fields for account and license entitlements. |
src/main/topLevelPages/myDashboard/Campaigns/CampaignBlock.tsx |
Enhanced CampaignBlock component to utilize LicenseEntitlementType and apply stricter access control based on user roles and entitlements. |
translation.en.json
file, potentially relating to user interface changes involving account entitlements.client
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Documentation