Loading ccserver/conf.py +2 −2 Original line number Diff line number Diff line Loading @@ -298,7 +298,7 @@ class CCConf(object): self._set_conf(login, conf, create=True) @_writer def add_right(self, login, tql, method=None, allow=True, index=None): def add_right(self, login, tql, method=None, target='allow', index=None): ''' Add a right rule to the provided account. Loading @@ -316,7 +316,7 @@ class CCConf(object): conf = self._get_conf(login) rights = conf['rights'] rule = {'tql': tql, 'method': method, 'allow': allow} rule = {'tql': tql, 'method': method, 'target': target} if index is None: index = len(rights) rights.insert(index, rule) Loading Loading
ccserver/conf.py +2 −2 Original line number Diff line number Diff line Loading @@ -298,7 +298,7 @@ class CCConf(object): self._set_conf(login, conf, create=True) @_writer def add_right(self, login, tql, method=None, allow=True, index=None): def add_right(self, login, tql, method=None, target='allow', index=None): ''' Add a right rule to the provided account. Loading @@ -316,7 +316,7 @@ class CCConf(object): conf = self._get_conf(login) rights = conf['rights'] rule = {'tql': tql, 'method': method, 'allow': allow} rule = {'tql': tql, 'method': method, 'target': target} if index is None: index = len(rights) rights.insert(index, rule) Loading