changeset 51:8efabe84b7ea

restricted page editor, definition editor and admin menus to admins.
author casties
date Wed, 30 Sep 2015 15:52:17 +0000
parents 6759030ef45b
children 4ee8d47e1e34
files src/main/webapp/public/header.jsp src/main/webapp/templates/main_template.xhtml
diffstat 2 files changed, 8 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/webapp/public/header.jsp	Thu Jul 16 09:52:15 2015 +0000
+++ b/src/main/webapp/public/header.jsp	Wed Sep 30 15:52:17 2015 +0000
@@ -16,7 +16,7 @@
 			</div>
 			<div id="headerContent">
 				<h1>
-					<a href="${contextBean.getAppBean().getRoot()}">ISMI</a>
+					<a href="${contextBean.getAppBean().getRoot()}">ISMI Lab</a>
 				</h1>
 				<p>Islamic Scientific Manuscripts Initiative</p>
 			</div>
--- a/src/main/webapp/templates/main_template.xhtml	Thu Jul 16 09:52:15 2015 +0000
+++ b/src/main/webapp/templates/main_template.xhtml	Wed Sep 30 15:52:17 2015 +0000
@@ -128,7 +128,7 @@
 			</div>
 			<div id="headerContent">
 				<h1>
-					<a href="#{ApplicationBean1.root}">ISMI</a>
+					<a href="#{ApplicationBean1.root}">ISMI Lab</a>
 				</h1>
 				<p>Islamic Scientific Manuscripts Initiative</p>
 			</div>
@@ -201,16 +201,17 @@
 			<h:outputLink  rendered="#{Session.canCreate}"
 				value="#{ApplicationBean1.root}/search/biographies.xhtml">Biographies</h:outputLink>
 				
-			<h:outputLink rendered="#{Session.canCreate}"
+		    <!-- 
+			<h:outputLink rendered="#{Session.admin}"
 				value="#{ApplicationBean1.root}/imageServer/displayDigiList.xhtml">Image Server</h:outputLink>
-			
-			<h:outputLink rendered="#{Session.canCreate}"
+			-->
+			<h:outputLink rendered="#{Session.admin}"
 				value="#{ApplicationBean1.root}/public/dynamicPageEditor.xhtml">Dynamic Page Editor</h:outputLink>
 			
-			<h:outputLink rendered="#{Session.canCreate}"
+			<h:outputLink rendered="#{Session.admin}"
 				value="#{ApplicationBean1.root}/defs/defEditor.xhtml">Definition Editor</h:outputLink>
 
-			<h:outputLink rendered="#{Session.canCreate}"
+			<h:outputLink rendered="#{Session.admin}"
 				value="#{ApplicationBean1.root}/admin/admin.xhtml">Admin</h:outputLink>