Add ACL support.

This commit is contained in:
2013-11-07 22:13:39 +00:00
parent 01f7db446a
commit 52bc2f6c09
3 changed files with 71 additions and 12 deletions

View File

@@ -42,6 +42,18 @@ class Server(object):
def set_conf(self, key, value):
return self.__server.setConf(key, value)
# ACLs
def get_acls(self, channel_id):
acls, groups, inherit = self.__server.getACL(channel_id)
return acls
# Groups
def get_groups(self, channel_id):
acls, groups, inherit = self.__server.getACL(channel_id)
return groups
# Channels
def get_channels(self):