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:
|
||||
|
|
|
|||
|
|
@ -240,7 +240,7 @@ class ServerSession(Session):
|
|||
|
||||
for funcname, argtuple in data.items():
|
||||
# loop through the data, calling available functions.
|
||||
func = OOB_FUNC_MODULE.__dict__.get(funcname, None)
|
||||
rc func = OOB_FUNC_MODULE.__dict__.get(funcname, None)
|
||||
if func:
|
||||
try:
|
||||
outdata[funcname] = func(entity, *argtuple[0], **argtuple[1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue