From 7aa13d481abb476c04195bc1cd53164db0ff4987 Mon Sep 17 00:00:00 2001
From: Carlos Vega <carlos.vega@uni.lu>
Date: Mon, 7 Jan 2019 14:16:18 +0100
Subject: [PATCH] added more text to error message

---
 smash/web/decorators.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/smash/web/decorators.py b/smash/web/decorators.py
index c678bfb8..b3124a1f 100644
--- a/smash/web/decorators.py
+++ b/smash/web/decorators.py
@@ -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:
-- 
GitLab