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:
Griatch 2016-08-21 23:59:56 +02:00
parent 89568b5277
commit faa3dca2d0
2 changed files with 10 additions and 3 deletions

View file

@ -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: