Commit a4e26b67 authored by Antoine Millet's avatar Antoine Millet
Browse files

Rules allow -> t/f changed to targer -> allow/deny.

parent 8f6939a7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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.

@@ -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)