This commit is contained in:
Francesco Siddi 2017-08-18 18:25:02 +02:00
parent c9b2eb25b2
commit 6e9a539d61

View File

@ -302,7 +302,7 @@ def require_login(require_roles=set(),
# We don't need to log at a higher level, as this is very common. # We don't need to log at a higher level, as this is very common.
# Many browsers first try to see whether authentication is needed # Many browsers first try to see whether authentication is needed
# at all, before sending the password. # at all, before sending the password.
log.debug('Unauthenticated acces to %s attempted.', func) log.debug('Unauthenticated access to %s attempted.', func)
abort(403) abort(403)
if require_roles and not g.current_user.matches_roles(require_roles, require_all): if require_roles and not g.current_user.matches_roles(require_roles, require_all):