Skip to content
Snippets Groups Projects
Commit 7aa13d48 authored by Carlos Vega's avatar Carlos Vega
Browse files

added more text to error message

parent 423fec8c
No related branches found
No related tags found
1 merge request!206Improvement/interface changes
......@@ -110,7 +110,7 @@ class PermissionDecorator:
permissions = roles[0].permissions.filter(codename=self.perm_codename)
if len(permissions) > 0:
return func(thing, *args, **kwargs)
messages.error(request, 'You are not authorized to view this page. Request permissions to the system administrator.')
messages.error(request, 'You are not authorized to view this page or perform this action. Request permissions to the system administrator.')
#avoid loops if the HTTP_REFERER header is set to the visited URL
http_referer = request.META.get('HTTP_REFERER', 'web.views.index')
if http_referer == request.build_absolute_uri() or http_referer == request.path:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment