Fixed some lingering issues in TutorialWorld.

This commit is contained in:
Griatch 2013-05-12 20:24:00 +02:00
parent bd9421d4b0
commit 88075bf2a0
3 changed files with 18 additions and 17 deletions

View file

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