Make default permissions use only : as separator.

This commit is contained in:
LeoVasanko committed 2025-08-31 06:43:49 +00:00
1 parent 24404738ab
commit 0e4e4f4cfa
6 files changed
+17 -21

No files matched your search

+1 -2
View File
@@ -462,8 +462,7 @@ class DB(DatabaseInterface):
)
# Automatically create an organization admin permission if not present.
# Pattern: auth/org:<org-uuid>
auto_perm_id = f"auth/org:{org.uuid}"
auto_perm_id = f"auth:org:{org.uuid}"
# Only create if it does not already exist (in case caller passed it)
existing_perm = await session.execute(
select(PermissionModel).where(PermissionModel.id == auto_perm_id)