git://git.onelab.eu
/
myslice.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix: hide management section for non pi users
[myslice.git]
/
portal
/
institution.py
diff --git
a/portal/institution.py
b/portal/institution.py
index
4ee9016
..
c53318b
100644
(file)
--- a/
portal/institution.py
+++ b/
portal/institution.py
@@
-5,7
+5,7
@@
from django.template import RequestContext
from django.shortcuts import render_to_response
from django.shortcuts import render
from django.shortcuts import render_to_response
from django.shortcuts import render
-from unfold.loginrequired import
FreeAccess
View
+from unfold.loginrequired import
LoginRequiredAutoLogout
View
from manifold.core.query import Query
from manifoldapi.manifoldapi import execute_query
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
from myslice.theme import ThemeView
import json
-class InstitutionView (
FreeAccess
View, ThemeView):
+class InstitutionView (
LoginRequiredAutoLogout
View, ThemeView):
template_name = 'institution.html'
# expose this so we can mention the backend URL on the welcome page
template_name = 'institution.html'
# expose this so we can mention the backend URL on the welcome page
@@
-75,6
+75,7
@@
class InstitutionView (FreeAccessView, ThemeView):
env['person'] = None
env['theme'] = self.theme
env['person'] = None
env['theme'] = self.theme
+ env['section'] = "Institution"
env['pi'] = pi
env['username']=the_user(request)
env['topmenu_items'] = topmenu_items(None, request)
env['pi'] = pi
env['username']=the_user(request)
env['topmenu_items'] = topmenu_items(None, request)