From bddef1de0cad41f6b9369808186a1b427d2008da Mon Sep 17 00:00:00 2001 From: Michael Ziegler Date: Sun, 28 Feb 2010 20:05:57 +0100 Subject: [PATCH] display admin stuff to superusers even when they are not server admins --- pyweb/mumble/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyweb/mumble/models.py b/pyweb/mumble/models.py index c9e9d9a..abe35ee 100644 --- a/pyweb/mumble/models.py +++ b/pyweb/mumble/models.py @@ -328,6 +328,8 @@ class Mumble( models.Model ): def isUserAdmin( self, user ): """ Determine if the given user is an admin on this server. """ if user.is_authenticated(): + if user.is_superuser: + return True; try: return self.mumbleuser_set.get( owner=user ).getAdmin(); except MumbleUser.DoesNotExist: