mirror of
https://github.com/evennia/evennia.git
synced 2026-04-02 05:57:16 +02:00
Cleaned up all commands of the player type to correctly relay their msg-data only to their assigned session.
This commit is contained in:
parent
a6544f2848
commit
b58a464409
4 changed files with 43 additions and 44 deletions
|
|
@ -1657,8 +1657,10 @@ class TypedObject(SharedMemoryModel):
|
|||
This explicitly checks if we hold particular permission without involving
|
||||
any locks.
|
||||
"""
|
||||
if self.player and self.player.is_superuser:
|
||||
return True
|
||||
if hasattr(self, "player"):
|
||||
if self.player and self.player.is_superuser: return True
|
||||
else:
|
||||
if self.is_superuser: return True
|
||||
|
||||
if not permstring:
|
||||
return False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue