Make sure robot accounts never validate when checking the auth cookie
This commit is contained in:
parent
4faf782f01
commit
9577b428e9
1 changed files with 4 additions and 0 deletions
|
@ -44,6 +44,10 @@ def api_login_required(f):
|
||||||
current_user.db_user().organization):
|
current_user.db_user().organization):
|
||||||
abort(401)
|
abort(401)
|
||||||
|
|
||||||
|
if (current_user and current_user.db_user() and
|
||||||
|
current_user.db_user().robot):
|
||||||
|
abort(401)
|
||||||
|
|
||||||
return f(*args, **kwargs)
|
return f(*args, **kwargs)
|
||||||
return decorated_view
|
return decorated_view
|
||||||
|
|
||||||
|
|
Reference in a new issue