Fixed some lingering issues in TutorialWorld.
This commit is contained in:
parent
bd9421d4b0
commit
88075bf2a0
3 changed files with 18 additions and 17 deletions
|
|
@ -493,11 +493,11 @@ class ObjectDB(TypedObject):
|
|||
has_player = property(__has_player_get)
|
||||
is_player = property(__has_player_get)
|
||||
|
||||
##@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, "player"), "is_superuser")
|
||||
#is_superuser = property(__is_superuser_get)
|
||||
#@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")
|
||||
is_superuser = property(__is_superuser_get)
|
||||
|
||||
# contents
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue