Institution+Validation view: Login restriction added
authorYasin <mohammed-yasin.rahman@lip6.fr>
Mon, 14 Apr 2014 13:04:51 +0000 (15:04 +0200)
committerYasin <mohammed-yasin.rahman@lip6.fr>
Mon, 14 Apr 2014 13:04:51 +0000 (15:04 +0200)
portal/institution.py
portal/validationview.py

index 792fc6b..c53318b 100644 (file)
@@ -5,7 +5,7 @@ from django.template                import RequestContext
 from django.shortcuts               import render_to_response
 from django.shortcuts               import render
 
-from unfold.loginrequired           import FreeAccessView
+from unfold.loginrequired           import LoginRequiredAutoLogoutView
 
 from manifold.core.query            import Query
 from manifoldapi.manifoldapi        import execute_query
@@ -16,7 +16,7 @@ from myslice.configengine           import ConfigEngine
 from myslice.theme                          import ThemeView
 import json
 
-class InstitutionView (FreeAccessView, ThemeView):
+class InstitutionView (LoginRequiredAutoLogoutView, ThemeView):
     template_name = 'institution.html'
         
     # expose this so we can mention the backend URL on the welcome page
index b5170b9..3cfa528 100644 (file)
@@ -28,7 +28,7 @@ from django.http                import HttpResponseRedirect, HttpResponse
 from django.shortcuts           import render
 from django.template.loader     import render_to_string
 
-from unfold.loginrequired       import FreeAccessView
+from unfold.loginrequired       import LoginRequiredAutoLogoutView
 from ui.topmenu                 import topmenu_items_live, the_user
 
 from portal.event               import Event
@@ -46,7 +46,7 @@ from manifold.core.query        import Query
 from unfold.page                import Page
 from myslice.theme import ThemeView
 
-class ValidatePendingView(FreeAccessView, ThemeView):
+class ValidatePendingView(LoginRequiredAutoLogoutView, ThemeView):
     template_name = "validate_pending.html"
 
     def get_context_data(self, **kwargs):