Added an AttributeError check in perm_above lockfunc, to catch instances of checking permissions before player logged in.
This commit is contained in:
parent
cdd24bd6f2
commit
57de91a234
2 changed files with 2 additions and 2 deletions
|
|
@ -157,7 +157,7 @@ def perm_above(accessing_obj, accessed_obj, *args, **kwargs):
|
|||
"""
|
||||
try:
|
||||
perm = args[0].lower()
|
||||
except IndexError:
|
||||
except (AttributeError, IndexError):
|
||||
return False
|
||||
|
||||
if perm in _PERMISSION_HIERARCHY:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue