summaryrefslogtreecommitdiff
path: root/app/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/utils.py')
-rw-r--r--app/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/utils.py b/app/utils.py
index 9ee0cf1..73f2b51 100644
--- a/app/utils.py
+++ b/app/utils.py
@@ -101,7 +101,7 @@ def assert_authorisation(constructor, param):
obj = constructor(p)
if obj is None:
- flash(u"Eintrag existiert nicht!", u'error')
+ flash("Eintrag existiert nicht!", 'error')
return redirect('index')
if not hasattr(obj, 'user_id'):
@@ -109,7 +109,7 @@ def assert_authorisation(constructor, param):
# explicitly use user_id to avoid having to load the user object
if obj.user_id != current_user.id:
- flash(u"Nicht erlaubte Operation!", u'error')
+ flash("Nicht erlaubte Operation!", 'error')
return redirect('index')
else:
return f(*args, **kwargs)