Loading ccserver/ccserver.py +2 −2 Original line number Diff line number Diff line Loading @@ -207,8 +207,8 @@ class CCServer(object): 'connected' % login) client.shutdown() def check(self, client, method, tql=None): rights = self.conf.show(client.login)['rights'] def check(self, login, method, tql=None): rights = self.conf.show(login)['rights'] if tql is not None: objects = self.list(tql, pure=True) for right in rights: Loading ccserver/handlers.py +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ class OnlineCCHandler(CCHandler): def _check(self, conn, method, tql=None): client = self._server.search_client_by_connection(conn) allow = self._server.check(client, method, tql) allow = self._server.check(client.login, method, tql) if not allow: raise RightError('You are not allowed to do this action.') Loading Loading
ccserver/ccserver.py +2 −2 Original line number Diff line number Diff line Loading @@ -207,8 +207,8 @@ class CCServer(object): 'connected' % login) client.shutdown() def check(self, client, method, tql=None): rights = self.conf.show(client.login)['rights'] def check(self, login, method, tql=None): rights = self.conf.show(login)['rights'] if tql is not None: objects = self.list(tql, pure=True) for right in rights: Loading
ccserver/handlers.py +1 −1 Original line number Diff line number Diff line Loading @@ -96,7 +96,7 @@ class OnlineCCHandler(CCHandler): def _check(self, conn, method, tql=None): client = self._server.search_client_by_connection(conn) allow = self._server.check(client, method, tql) allow = self._server.check(client.login, method, tql) if not allow: raise RightError('You are not allowed to do this action.') Loading