svn commit: r674253 - in /ofbiz/trunk: applications/party/widget/partymgr/ProfileScreens.xml specialpurpose/mypage/widget/MyPageScreens.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

svn commit: r674253 - in /ofbiz/trunk: applications/party/widget/partymgr/ProfileScreens.xml specialpurpose/mypage/widget/MyPageScreens.xml

hansbak-2
Author: hansbak
Date: Sat Jul  5 20:31:41 2008
New Revision: 674253

URL: http://svn.apache.org/viewvc?rev=674253&view=rev
Log:
make menu items in screenlet depending on security in a section within the screenlet.......however if the user has the security the screenlet does not recognize that and the menu iten is not shown within the screenlet......Adrian can you please have a look if this could be possible?

Modified:
    ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml
    ofbiz/trunk/specialpurpose/mypage/widget/MyPageScreens.xml

Modified: ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml?rev=674253&r1=674252&r2=674253&view=diff
==============================================================================
--- ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml (original)
+++ ofbiz/trunk/applications/party/widget/partymgr/ProfileScreens.xml Sat Jul  5 20:31:41 2008
@@ -41,7 +41,14 @@
                     </condition>
                     <widgets>
                         <screenlet title="${uiLabelMap.PartyPersonalInformation}" navigation-menu-name="personUpdate" collapsible="true" id="PartyPersonalInformationPanel">
-                            <include-menu name="personUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/>
+                         <section>
+                         <condition>
+                         <if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/>
+                         </condition>
+                         <widgets>
+                             <include-menu name="personUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/>
+                         </widgets>
+                         </section>
                             <include-form name="ViewPartyPerson" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
                             <section>
                                 <condition>
@@ -60,7 +67,14 @@
                     </condition>
                     <widgets>
                         <screenlet title="${uiLabelMap.PartyPartyGroupInformation}" navigation-menu-name="groupUpdate" collapsible="true" id="PartyGroupInformationPanel">
-                            <include-menu name="groupUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/>
+                         <section>
+                         <condition>
+                         <if-has-permission permission="PARTYMGR" action="_GRP_UPDATE"/>
+                         </condition>
+                         <widgets>
+                            <include-menu name="groupUpdate" location="component://party/widget/partymgr/PartyMenus.xml"/>
+                         </widgets>
+                         </section>
                             <include-form name="ViewPartyGroup" location="component://party/webapp/partymgr/party/PartyForms.xml"/>
                             <section>
                                 <condition>

Modified: ofbiz/trunk/specialpurpose/mypage/widget/MyPageScreens.xml
URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/mypage/widget/MyPageScreens.xml?rev=674253&r1=674252&r2=674253&view=diff
==============================================================================
--- ofbiz/trunk/specialpurpose/mypage/widget/MyPageScreens.xml (original)
+++ ofbiz/trunk/specialpurpose/mypage/widget/MyPageScreens.xml Sat Jul  5 20:31:41 2008
@@ -41,7 +41,14 @@
             <widgets>
                 <screenlet title="${uiLabelMap.PageTitleCurrentTimesheet} ${uiLabelMap.CommonNbr} ${timesheet.timesheetId} ${uiLabelMap.ProjectMgrWeek}: ${weekNumber} ${uiLabelMap.CommonFrom} ${bsh:timesheet.get(&quot;fromDate&quot;).toString().substring(0,10)} ${uiLabelMap.CommonTo} ${bsh:timesheet.get(&quot;thruDate&quot;).toString().substring(0,10)}"
                     navigation-menu-name="MyTimesheetMenu" collapsible="true" name="timesheet">
-                    <include-menu name="MyTimesheetMenu" location="component://mypage/widget/MyPageMenus.xml"/>
+                    <section>
+                     <condition>
+                     <if-has-permission permission="PROJECTMGR" action="_VIEW"/>
+                     </condition>
+                     <widgets>
+                    <include-menu name="MyTimesheetMenu" location="component://mypage/widget/MyPageMenus.xml"/>
+                     </widgets>
+                    </section>
                     <section>
                         <condition>
                             <if-compare field-name="timesheet.statusId" operator="equals" value="TIMESHEET_COMPLETED"/>
@@ -68,7 +75,14 @@
             </actions>
             <widgets>
                 <screenlet title="${uiLabelMap.PageTitleTaskAssignedToMe}" name="mytasks" collapsible="true" navigation-menu-name="MyTasksMenu">
-                    <include-menu name="MyTasksMenu" location="component://mypage/widget/MyPageMenus.xml"/>
+                    <section>
+                     <condition>
+                     <if-has-permission permission="PROJECTMGR" action="_VIEW"/>
+                     </condition>
+                     <widgets>
+                    <include-menu name="MyTasksMenu" location="component://mypage/widget/MyPageMenus.xml"/>
+                     </widgets>
+                    </section>
                     <section>
                         <condition>
                             <not><if-empty field-name="tasks"/></not>