Grant the static super-admin mobile full ALL_RIDS and move slider into ثابت‌ها permissions.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
s.esmaeili
2026-10-16 09:27:41 +03:30
co-authored by Cursor
parent 1dd66a1baf
commit eb6fe2a369
5 changed files with 31 additions and 24 deletions
+2
View File
@@ -6,6 +6,8 @@
* gated by `users.isSuperAdmin` in place instead.
*
* Keep in step with SUPER_ADMIN_RIDS in apps/api/src/modules/auth/super-admin.ts.
* Login/JWT for that mobile grants the full ALL_RIDS set on the API side; this
* set is only the tree-filter used when editing other roles' permissions.
*/
export const SUPER_ADMIN_RIDS: ReadonlySet<string> = new Set([
'persons.create.single',