X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=engine%2Fviews.py;h=bb7ba1603fa13843804e032d128d288566a4e006;hb=3528c308c23c63774cccf92e473abed0d85893e0;hp=52e22d2338d6670648671c2f9d295c93e995d309;hpb=68e0811883d0790679f0539300a230677f7b9743;p=myslice.git diff --git a/engine/views.py b/engine/views.py index 52e22d23..bb7ba160 100644 --- a/engine/views.py +++ b/engine/views.py @@ -5,6 +5,8 @@ from django.template import RequestContext from django.template.loader import render_to_string from django.shortcuts import render_to_response +from django.contrib.auth.decorators import login_required + from plugins.verticallayout import VerticalLayout from plugins.tabs import Tabs from plugins.simplelist import SimpleList @@ -14,6 +16,7 @@ from plugins.raw import Raw from myslice.viewutils import topmenu_items, the_user from myslice.viewutils import hard_wired_slice_names, hard_wired_list, lorem_p, lorem +@login_required def test_plugin_view (request): # variables that will get passed to this template