Change non logged in 403s to 401s.
This commit is contained in:
parent
7bd4b9a71c
commit
6fc369bed2
5 changed files with 163 additions and 158 deletions
|
@ -30,7 +30,7 @@ CREATE_REPO = {
|
|||
'the granting user or robot account is allowed to create repositories')
|
||||
}
|
||||
|
||||
USER_READ = {
|
||||
READ_USER = {
|
||||
'scope': 'user:read',
|
||||
'icon': 'fa-user',
|
||||
'title': 'Read User Information',
|
||||
|
@ -39,7 +39,7 @@ USER_READ = {
|
|||
}
|
||||
|
||||
ALL_SCOPES = {scope['scope']:scope for scope in (READ_REPO, WRITE_REPO, ADMIN_REPO, CREATE_REPO,
|
||||
USER_READ)}
|
||||
READ_USER)}
|
||||
|
||||
|
||||
def scopes_from_scope_string(scopes):
|
||||
|
|
Reference in a new issue