|
|
@ -537,10 +537,15 @@ class MumbleUser( models.Model ): |
|
|
|
# Admin handlers |
|
|
|
def getAdmin( self ): |
|
|
|
""" Get ACL of root Channel, get the admin group and see if this user is in it. """ |
|
|
|
if self.mumbleid == -1: |
|
|
|
return False; |
|
|
|
else: |
|
|
|
return self.server.rootchan.acl.group_has_member( "admin", self.mumbleid ); |
|
|
|
|
|
|
|
def setAdmin( self, value ): |
|
|
|
""" Set or revoke this user's membership in the admin group on the root channel. """ |
|
|
|
if self.mumbleid == -1: |
|
|
|
return False; |
|
|
|
if value: |
|
|
|
self.server.rootchan.acl.group_add_member( "admin", self.mumbleid ); |
|
|
|
else: |
|
|
|