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()
|
# hierarchy includes access of all levels below it. Used by the perm()/pperm()
|
||||||
# lock functions, which accepts both plural and singular (Admin & Admins)
|
# lock functions, which accepts both plural and singular (Admin & Admins)
|
||||||
PERMISSION_HIERARCHY = ["Guest", # note-only used if GUEST_ENABLED=True
|
PERMISSION_HIERARCHY = ["Guest", # note-only used if GUEST_ENABLED=True
|
||||||
"Account",
|
"Player",
|
||||||
"Helper",
|
"Helper",
|
||||||
"Builder",
|
"Builder",
|
||||||
"Admin",
|
"Admin",
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@ def update_perms_and_locks(apps, schema_editor):
|
||||||
|
|
||||||
# update all permissions
|
# update all permissions
|
||||||
Tag = apps.get_model('typeclasses', 'Tag')
|
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"}
|
"builders": "builder", "wizards":"admin", "immortals": "developer"}
|
||||||
|
|
||||||
for perm in Tag.objects.filter(db_tagtype="permission"):
|
for perm in Tag.objects.filter(db_tagtype="permission"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue