snapshot: preserve trial lifecycle and product-grade expiry UX
This commit is contained in:
@@ -30,6 +30,7 @@ CAPABILITIES = {
|
||||
'manage_users': {ROLE_PLATFORM_OWNER, ROLE_SUPER_ADMIN},
|
||||
'manage_product_branding': {ROLE_PLATFORM_OWNER},
|
||||
'manage_company_config': {ROLE_PLATFORM_OWNER},
|
||||
'manage_trial_lifecycle': {ROLE_PLATFORM_OWNER},
|
||||
'manage_app_registry': {ROLE_PLATFORM_OWNER},
|
||||
'access_requests_dashboard': {ROLE_PLATFORM_OWNER, ROLE_SUPER_ADMIN, ROLE_ADMIN, ROLE_IT_STAFF, ROLE_STAFF},
|
||||
'view_request_timeline': {ROLE_PLATFORM_OWNER, ROLE_SUPER_ADMIN, ROLE_ADMIN, ROLE_IT_STAFF},
|
||||
@@ -127,6 +128,7 @@ def template_role_context(user) -> dict[str, object]:
|
||||
'role_label': str(ROLE_LABELS[role_key]),
|
||||
'can_manage_product_branding': user_has_capability(user, 'manage_product_branding'),
|
||||
'can_manage_company_config': user_has_capability(user, 'manage_company_config'),
|
||||
'can_manage_trial_lifecycle': user_has_capability(user, 'manage_trial_lifecycle'),
|
||||
'can_manage_app_registry': user_has_capability(user, 'manage_app_registry'),
|
||||
'can_manage_users': user_has_capability(user, 'manage_users'),
|
||||
'can_access_requests_dashboard': user_has_capability(user, 'access_requests_dashboard'),
|
||||
|
||||
Reference in New Issue
Block a user