Make default permissions use only : as separator.

This commit is contained in:
2025-08-31 06:43:49 +00:00
parent 24404738ab
commit 0e4e4f4cfa
6 changed files with 17 additions and 21 deletions
+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)