diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-12-16 22:49:48 +0100 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2009-12-16 22:49:48 +0100 |
commit | ea5dbe7e25b156bb0b2e9e6da06c7da9549ddbe5 (patch) | |
tree | df4f212d5d320700dc8db4509fc9326e385d0899 /module/web/pyload/views.py | |
parent | Fixed Relink.us, Uploaded.to Name Bug (diff) | |
parent | Webinterface authsystem (diff) | |
download | pyload-ea5dbe7e25b156bb0b2e9e6da06c7da9549ddbe5.tar.xz |
merged
Diffstat (limited to 'module/web/pyload/views.py')
-rw-r--r-- | module/web/pyload/views.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/module/web/pyload/views.py b/module/web/pyload/views.py index 6c2954555..405bd2753 100644 --- a/module/web/pyload/views.py +++ b/module/web/pyload/views.py @@ -50,29 +50,28 @@ def base(request, messages): return render_to_response(join(settings.TEMPLATE,'base.html'), {'messages': messages},RequestContext(request)) @login_required -#@permission('perm.permissions.can_see_dl') @TODO: Permissions not working :( +@permission('pyload.can_see_dl') @check_server def home(request): - print request.user.get_all_permissions() return render_to_response(join(settings.TEMPLATE,'home.html'), RequestContext(request)) @login_required -#@permission('pyload.perm.can_see_dl') +@permission('pyload.can_see_dl') @check_server def queue(request): return render_to_response(join(settings.TEMPLATE,'queue.html'), RequestContext(request)) @login_required -#@permission('pyload.user.can_download') +@permission('pyload.can_download') @check_server def downloads(request): return render_to_response(join(settings.TEMPLATE,'downloads.html'), RequestContext(request)) @login_required -#@permission('pyload.user.can_see_logs') +@permission('pyload.user.can_see_logs') @check_server def logs(request): return render_to_response(join(settings.TEMPLATE,'logs.html'), RequestContext(request)) |