It's "permission to add denied"

Andrei Sosnin


On Tue, Sep 24, 2013 at 8:05 PM, Ilja Livenson <notifications@github.com>wrote:

> In opennode/oms/security/passwd.py:
>
> > @@ -51,7 +51,12 @@ def ensure_base_dir():
> >          os.chdir(basedir)
> >
> >
> > -def add_user(user, password, group=None, uid=None):
> > +def add_user(user, password, group=None, uid=None, force=False):
> > +    restricted_users = get_config().get('auth', 'restricted_users', '').split(',')
> > +
> > +    if user in map(string.strip, restricted_users) and not force:
> > +        raise UserManagementError('User %s is restricted! Adding permission denied!' % user)
>
> 'Adding permission'? 'Adding user'!
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/opennode/opennode-management/pull/217/files#r6549654>
> .
>