Permissions refactor. Permissions have UUID and scope (previously id) and the latter no longer needs to be unique. Org admin uses a single global permission now. Domain scoped permissions. Removed from user info the admin fields, use effective_permission checks instead.

This commit is contained in:
Leo Vasanko
2026-01-23 13:54:31 +00:00
parent 291e0eae0b
commit 253387be97
16 changed files with 729 additions and 318 deletions
+2 -2
View File
@@ -26,8 +26,8 @@ const sortedRoles = computed(() => {
})
})
function permissionDisplayName(id) {
return props.permissions.find(p => p.id === id)?.display_name || id
function permissionDisplayName(scope) {
return props.permissions.find(p => p.scope === scope)?.display_name || scope
}
function toggleRolePermission(role, pid, checked) {