Fix typo
This commit is contained in:
parent
c9b2eb25b2
commit
6e9a539d61
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user