summaryrefslogtreecommitdiffstats
path: root/module/web/pyload
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-11 22:16:31 +0100
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2010-01-11 22:16:31 +0100
commit9bff9c69d6983dc190c189647821e12d0f134883 (patch)
tree163804a40136bb0d76b5b375a1ac83df212b775e /module/web/pyload
parentedited wrong file in last commit (diff)
downloadpyload-9bff9c69d6983dc190c189647821e12d0f134883.tar.xz
finally and officially: webinterface home page working ;)
Diffstat (limited to 'module/web/pyload')
-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.'])