neuro-inc/neuro-cli

`neuro acl add-role` fails with 403: Forbidden for managers and admins

Closed this issue · 1 comments

Description:

Both managers and admins should be able to add a role.

Example:

As a manager or admin:

$ neuro -v acl add-role mycompany/subdivision
ERROR: Not enough permissions (403: Forbidden)

Roles are actually working, but in user scope and not as described in CLI's --help: they should use user-specific prefix:
<current-username>/roles/<role-name>

We might rethink moving roles out of user scope, but this is a separate story.