mirror of
https://github.com/nikdoof/mumblepy.git
synced 2025-12-17 11:49:23 +00:00
Return None where ACLs don't have a User defined.
This commit is contained in:
@@ -24,7 +24,8 @@ class ACL(object):
|
|||||||
@property
|
@property
|
||||||
def user(self):
|
def user(self):
|
||||||
"""Returns the User ID this ACL applies to"""
|
"""Returns the User ID this ACL applies to"""
|
||||||
return self.__acl.userid
|
if self.__acl.userid != -1:
|
||||||
|
return self.__acl.userid
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def group(self):
|
def group(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user