Fix some permissions problems still around due to some usage of scopes as strings.
This commit is contained in:
parent
3b7b12085d
commit
0992c8a47e
4 changed files with 12 additions and 6 deletions
|
@ -32,7 +32,12 @@ from endpoints.api.repository import RepositoryList, RepositoryVisibility, Repos
|
|||
from endpoints.api.permission import (RepositoryUserPermission, RepositoryTeamPermission,
|
||||
RepositoryTeamPermissionList, RepositoryUserPermissionList)
|
||||
|
||||
app.register_blueprint(api_bp, url_prefix='/api')
|
||||
try:
|
||||
app.register_blueprint(api_bp, url_prefix='/api')
|
||||
except ValueError:
|
||||
# This blueprint was already registered
|
||||
pass
|
||||
|
||||
app.register_blueprint(webhooks, url_prefix='/webhooks')
|
||||
|
||||
NO_ACCESS_USER = 'freshuser'
|
||||
|
|
Reference in a new issue