Show More
@@ -460,8 +460,9 b' class LoginRequired(object):' | |||||
460 | loc = "%s:%s" % (cls.__class__.__name__, func.__name__) |
|
460 | loc = "%s:%s" % (cls.__class__.__name__, func.__name__) | |
461 | log.debug('Checking if %s is authenticated @ %s' % (user.username, loc)) |
|
461 | log.debug('Checking if %s is authenticated @ %s' % (user.username, loc)) | |
462 | if user.is_authenticated or api_access_ok: |
|
462 | if user.is_authenticated or api_access_ok: | |
463 | log.info('user %s is authenticated and granted access to %s' % ( |
|
463 | reason = 'RegularAuth' if user.is_authenticated else 'APIAuth' | |
464 | user.username, loc) |
|
464 | log.info('user %s is authenticated and granted access to %s ' | |
|
465 | 'using %s' % (user.username, loc, reason) | |||
465 | ) |
|
466 | ) | |
466 | return func(*fargs, **fkwargs) |
|
467 | return func(*fargs, **fkwargs) | |
467 | else: |
|
468 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now