Remove retroactive editor permission fallback
This commit is contained in:
@@ -856,12 +856,6 @@ class AuthService:
|
|||||||
else:
|
else:
|
||||||
existing = self._db_fetchall("SELECT permission_key FROM role_permissions WHERE role_id = ?", (role_id,))
|
existing = self._db_fetchall("SELECT permission_key FROM role_permissions WHERE role_id = ?", (role_id,))
|
||||||
if existing:
|
if existing:
|
||||||
if role_name == "editor":
|
|
||||||
# Keep existing editor customizations but ensure own pickup/drop is present.
|
|
||||||
self._db_execute(
|
|
||||||
"INSERT OR IGNORE INTO role_permissions (role_id, permission_key) VALUES (?, ?)",
|
|
||||||
(role_id, "item.pickup_drop.own"),
|
|
||||||
)
|
|
||||||
# Preserve existing customizations for non-admin defaults.
|
# Preserve existing customizations for non-admin defaults.
|
||||||
continue
|
continue
|
||||||
allowed = DEFAULT_ROLE_PERMISSIONS.get(role_name, set())
|
allowed = DEFAULT_ROLE_PERMISSIONS.get(role_name, set())
|
||||||
|
|||||||
Reference in New Issue
Block a user