feat: let admins hide delegates or limit them to read access per domain or group

This commit is contained in:
Linus Rath
2026-10-28 05:11:26 +01:00
parent bcf4f3a7a6
commit 0232ae322b
2 changed files with 26 additions and 4 deletions
+2
View File
@@ -42,6 +42,8 @@ export const RESTRICTION_KEYS: readonly RestrictionKeyDef[] = [
{ key: 'calendarNotificationsEnabled', label: 'Calendar Notifications', category: 'Notifications', type: 'boolean', page: 'policy' },
{ key: 'pushNotifyInboxOnly', label: 'Inbox-only Push Notifications', category: 'Notifications', type: 'boolean', page: 'policy' },
{ key: 'debugMode', label: 'Debug Mode', category: 'Advanced', type: 'boolean', page: 'policy' },
{ key: 'delegation', label: 'Delegates', description: 'Hide removes Settings > Sharing > Delegates, so users can no longer give someone access to mail, calendars and contacts in one step.', category: 'Sharing', type: 'boolean', page: 'org-sharing', modes: ['hidden'] },
{ key: 'delegationRights', label: 'Rights delegates can get', description: 'Untick "write" and the Delegates dialog offers read access only.', category: 'Sharing', type: 'enum', allowedValues: ['read', 'write'], page: 'org-sharing', modes: ['allowedValues'] },
];
export function restrictionKeysForPage(page: AdminPageId): RestrictionKeyDef[] {