You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Copyright The IETF Trust 2020, All Rights Reserved
# -*- coding: utf-8 -*-
fromdjango.core.exceptionsimportPermissionDenied
fromdjango.utils.safestringimportmark_safe
defpermission_denied(request, msg):
"A wrapper around the PermissionDenied exception"
ifnotrequest.user.is_authenticated:
msg+=" <br>You may want to <a href='/accounts/login?next=%s'><u>Log in</u></a> if you have a datatracker role that lets you access this page."%request.path