Fix user:admin scope handling and add test

This commit is contained in:
Joseph Schorr 2016-05-09 11:16:01 +02:00
parent eae771a465
commit a736407611
3 changed files with 42 additions and 6 deletions

View file

@ -54,6 +54,7 @@ SCOPE_MAX_USER_ROLES = defaultdict(lambda: None)
SCOPE_MAX_USER_ROLES.update({
scopes.READ_USER: 'read',
scopes.DIRECT_LOGIN: 'admin',
scopes.ADMIN_USER: 'admin',
})
def repository_read_grant(namespace, repository):