Refactor localization keys to use dot notation for consistency across… (#464)
* Refactor localization keys to use dot notation for consistency across documentation and components * chore: bump version to 3.0.1 in package.json * Remove console log from SidebarLayout and update migration documentation for AlertDialog usage within Dropdowns * Update dashboard image to improve visual assets
This commit is contained in:
committed by
GitHub
parent
7ebff31475
commit
f9dfdf3ac8
@@ -444,17 +444,17 @@ async function validateEnterpriseFeatureAccess(context: FeatureContext) {
|
||||
policies: [
|
||||
createPolicy(async (ctx) =>
|
||||
ctx.subscription?.plan === 'enterprise' && ctx.subscription.active
|
||||
? allow({ billing: 'enterprise-subscription' })
|
||||
? allow({ billing. 'enterprise-subscription' })
|
||||
: deny('Enterprise subscription required')
|
||||
),
|
||||
createPolicy(async (ctx) =>
|
||||
ctx.trial?.type === 'enterprise' && ctx.trial.daysRemaining > 0
|
||||
? allow({ billing: 'enterprise-trial', daysLeft: ctx.trial.daysRemaining })
|
||||
? allow({ billing. 'enterprise-trial', daysLeft: ctx.trial.daysRemaining })
|
||||
: deny('Active enterprise trial required')
|
||||
),
|
||||
createPolicy(async (ctx) =>
|
||||
ctx.adminOverride?.enabled && ctx.user.role === 'super-admin'
|
||||
? allow({ billing: 'admin-override' })
|
||||
? allow({ billing. 'admin-override' })
|
||||
: deny('Admin override not available')
|
||||
),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user