Stop #dbref searches for unprivileged. Other minor fixes. Resolves #1251.
This commit is contained in:
parent
3938dd45f7
commit
d2e8badf18
4 changed files with 25 additions and 16 deletions
|
|
@ -575,6 +575,10 @@ class TypedObject(SharedMemoryModel):
|
|||
ppos = _PERMISSION_HIERARCHY.index(perm)
|
||||
return any(True for hpos, hperm in enumerate(_PERMISSION_HIERARCHY)
|
||||
if hperm in perms and hpos > ppos)
|
||||
# we ignore pluralization (english only)
|
||||
if perm.endswith("s"):
|
||||
return self.check_permstring(perm[:-1])
|
||||
|
||||
return False
|
||||
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue