mirror of
https://github.com/evennia/evennia.git
synced 2026-03-16 21:06:30 +01:00
Correct lock hiearchy
This commit is contained in:
parent
be8452b1c7
commit
22ad761201
2 changed files with 2 additions and 2 deletions
|
|
@ -491,7 +491,7 @@ MAX_NR_CHARACTERS = 1
|
|||
# hierarchy includes access of all levels below it. Used by the perm()/pperm()
|
||||
# lock functions, which accepts both plural and singular (Admin & Admins)
|
||||
PERMISSION_HIERARCHY = ["Guest", # note-only used if GUEST_ENABLED=True
|
||||
"Account",
|
||||
"Player",
|
||||
"Helper",
|
||||
"Builder",
|
||||
"Admin",
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ def update_perms_and_locks(apps, schema_editor):
|
|||
|
||||
# update all permissions
|
||||
Tag = apps.get_model('typeclasses', 'Tag')
|
||||
perm_map = {"guests": "guest", "accounts": "account", "accounthelpers":"helper",
|
||||
perm_map = {"guests": "guest", "players": "player", "playerhelpers":"helper",
|
||||
"builders": "builder", "wizards":"admin", "immortals": "developer"}
|
||||
|
||||
for perm in Tag.objects.filter(db_tagtype="permission"):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue