rights system

This commit is contained in:
Matthias Hochmeister
2026-03-23 12:18:46 +01:00
parent fa10467f21
commit 725d4d1729
5 changed files with 49 additions and 1 deletions

View File

@@ -238,6 +238,12 @@ class PermissionService {
}
}
async deleteGroup(group: string): Promise<void> {
await pool.query('DELETE FROM group_permissions WHERE authentik_group = $1', [group]);
await this.loadCache();
logger.info('Group deleted from permissions', { group });
}
/**
* Bulk-update permissions for multiple groups in a single transaction.
* Reloads cache once at the end.