Make the 'exec' prototype key only usable for Immortals from the command line. Also fixes a bug in the check_permission method that made it not honor quelling.
This commit is contained in:
parent
89568b5277
commit
faa3dca2d0
2 changed files with 10 additions and 3 deletions
|
|
@ -525,10 +525,10 @@ class TypedObject(SharedMemoryModel):
|
|||
|
||||
"""
|
||||
if hasattr(self, "player"):
|
||||
if self.player and self.player.is_superuser:
|
||||
if self.player and self.player.is_superuser and not self.player.attributes.get("_quell"):
|
||||
return True
|
||||
else:
|
||||
if self.is_superuser:
|
||||
if self.is_superuser and not self.attributes.get("_quell"):
|
||||
return True
|
||||
|
||||
if not permstring:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue