Fixed some issues with the _superuser_character bypass as well as the is_superuser property on objects. Also fixed a bug with @examine that caused it to display object Attribute instead of Player Attributes when called from the ooc state.
This commit is contained in:
parent
7a8e53b3bd
commit
77a0b47859
3 changed files with 11 additions and 8 deletions
|
|
@ -496,7 +496,8 @@ class ObjectDB(TypedObject):
|
|||
#@property
|
||||
def __is_superuser_get(self):
|
||||
"Check if user has a player, and if so, if it is a superuser."
|
||||
return any(_GA(self, "sessions")) and _GA(_GA(self, "db_player"), "is_superuser")
|
||||
return (_GA(self, "db_player") and _GA(_GA(self, "db_player"), "is_superuser")
|
||||
and _GA(self, "get_attribute")("_superuser_character"))
|
||||
is_superuser = property(__is_superuser_get)
|
||||
|
||||
# contents
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue