Correct lock hiearchy

This commit is contained in:
Griatch 2017-07-09 18:59:23 +02:00
parent be8452b1c7
commit 22ad761201
2 changed files with 2 additions and 2 deletions

View file

@ -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",

View file

@ -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"):