summaryrefslogtreecommitdiffstats
path: root/module/web/pyload/views.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/web/pyload/views.py')
-rw-r--r--module/web/pyload/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py
index 35d777020..a28b71e69 100644
--- a/module/web/pyload/views.py
+++ b/module/web/pyload/views.py
@@ -40,7 +40,7 @@ def check_server(function):
def permission(perm):
def _dec(view_func):
def _view(request, * args, ** kwargs):
- if request.user.has_perm(perm):
+ if request.user.has_perm(perm) and request.user.is_authenticated():
return view_func(request, * args, ** kwargs)
else:
return base(request, messages=['You don\'t have permission to view this page.'])