|
@ -188,7 +188,7 @@ class MumbleUser( models.Model ): |
|
|
def getAdmin( self ): |
|
|
def getAdmin( self ): |
|
|
# Get ACL of root Channel, get the admin group and see if I'm in it |
|
|
# Get ACL of root Channel, get the admin group and see if I'm in it |
|
|
bus = self.server.getDbusObject(); |
|
|
bus = self.server.getDbusObject(); |
|
|
acl = mmACL( bus.getACL(0), 0 ); |
|
|
|
|
|
|
|
|
acl = mmACL( 0, bus.getACL(0) ); |
|
|
|
|
|
|
|
|
if not hasattr( acl, "admingroup" ): |
|
|
if not hasattr( acl, "admingroup" ): |
|
|
raise ValueError( "The admin group was not found in the ACL's groups list!" ); |
|
|
raise ValueError( "The admin group was not found in the ACL's groups list!" ); |
|
|