Author: DavidK Date: 2010-02-25 18:07:20 +0100 (Thu, 25 Feb 2010) New Revision: 1881 Modified: trunk/server/webServer2/WebContent/secured/statsrel/statistics.xhtml Log: new authorization Modified: trunk/server/webServer2/WebContent/secured/statsrel/statistics.xhtml =================================================================== --- trunk/server/webServer2/WebContent/secured/statsrel/statistics.xhtml 2010-02-25 17:05:33 UTC (rev 1880) +++ trunk/server/webServer2/WebContent/secured/statsrel/statistics.xhtml 2010-02-25 17:07:20 UTC (rev 1881) @@ -4,7 +4,8 @@ xmlns:f="http://java.sun.com/jsf/core"; xmlns:ui="http://java.sun.com/jsf/facelets"; xmlns:a4j="http://richfaces.org/a4j"; - xmlns:rich="http://richfaces.org/rich";> + xmlns:rich="http://richfaces.org/rich"; + xmlns:elvys="http://www.elvys.farm.particle.cz";> <ui:composition template="/template/elvys-template.xhtml"> <ui:define name="meta"> @@ -66,7 +67,7 @@ </ui:define> <ui:define name="contentBody"> - <rich:panel styleClass="reportPanel"> + <rich:panel styleClass="reportPanel" rendered="#{user.competency.canUseStatistics}"> <f:facet name="header">#{lbl['stats.title']}</f:facet> <h:form class="statisticsNavigation"> <h:commandLink id="NavigationCompany" value="#{statisticsBean.navigationCompanyName}" @@ -123,6 +124,9 @@ <ui:insert name="statisticsTable" /> </rich:panel> + <rich:panel rendered="#{!user.competency.canUseStatistics}"> + <elvys:notAuthorized/> + </rich:panel> </ui:define> <ui:define name="pageScriptBottom"> <script type="text/javascript">