in the project find list in the project manager only show projects to which the logged on user has access to. als correct small typo in portalSeed data

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@742330 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Hans Bakker
2009-02-09 08:38:01 +00:00
parent e404ba53ec
commit 4e7b11d9be
3 changed files with 20 additions and 4 deletions
+2 -2
View File
@@ -28,7 +28,7 @@
<!-- PortalPortlet System provided pages -->
<!-- no security group -->
<PortalPage portalPageId="MYPORTAL_NONE" portalPageName="Main" description="The default OFBiz portal page" ownerUserLoginId="_NA_"/>
<PortalPage portalPageId="MYPORTAL_NONE" portalPageName="Main" description="The default OFBiz portal page" ownerUserLoginId="_NA_"/><!-- user belonging to no portal security group -->
<PortalPage portalPageId="MYPORTAL_EMPLOYEE" sequenceNum="00" portalPageName="Main" description="The OFBiz My Portal Main page" ownerUserLoginId="_NA_" securityGroupId="MYPORTAL_EMPLOYEE" />
<PortalPage portalPageId="MYPORTAL_EMPLOYEE1" sequenceNum="01" portalPageName="My Profile" description="The OFBiz My Portal Profile page" ownerUserLoginId="_NA_" parentPortalPageId="MYPORTAL_EMPLOYEE"/>
@@ -40,7 +40,7 @@
<PortalPage portalPageId="MYPORTAL_EMPL-NOEML" sequenceNum="00" portalPageName="Main" description="The default OFBiz portal page" ownerUserLoginId="_NA_" securityGroupId="MYPORTAL_EMPL-NOEML" />
<PortalPage portalPageId="MYPORTAL_EMPL-NOEML1" sequenceNum="01" portalPageName="My Profile" ownerUserLoginId="_NA_" parentPortalPageId="MYPORTAL_EMPL-NOEML"/>
<PortalPage portalPageId="MYPORTAL_EMPL-NOEML2" sequenceNum="03" portalPageName="Other Communications" ownerUserLoginId="_NA_" parentPortalPageId="MYPORTAL_EMPL-NOEML"/>
<PortalPage portalPageId="MYPORTAL_EMPLOYEE3" sequenceNum="04" portalPageName="Company Events" description="The OFBiz My Portal Company Events page" ownerUserLoginId="_NA_" parentPortalPageId="MYPORTAL_EMPL-NOEML"/>
<PortalPage portalPageId="MYPORTAL_EMPL-NOEML3" sequenceNum="04" portalPageName="Company Events" description="The OFBiz My Portal Company Events page" ownerUserLoginId="_NA_" parentPortalPageId="MYPORTAL_EMPL-NOEML"/>
<PortalPage portalPageId="MYPORTAL_EMPL-NOEML4" sequenceNum="05" portalPageName="My Time Sheets" ownerUserLoginId="_NA_" parentPortalPageId="MYPORTAL_EMPL-NOEML"/>
<PortalPage portalPageId="MYPORTAL_EMPL-NOEML5" sequenceNum="06" portalPageName="My Tasks" ownerUserLoginId="_NA_" parentPortalPageId="MYPORTAL_EMPL-NOEML"/>
+12
View File
@@ -52,9 +52,21 @@ under the License.
<set field="workEffortId" from-field="parameters.projectId"/>
</actions>
<widgets>
<section>
<condition>
<not><if-has-permission permission="PROJECTMGR" action="_ADMIN"/></not>
</condition>
<actions>
<set field="parameters.partyId" from-field="parameters.userLogin.partyId"/>
<set field="nowDate" value="${bsh:org.ofbiz.base.util.UtilDateTime.nowDateString(&quot;yyyy-MM-dd HH:mm:ss.S&quot;)}" type="String"/>
<set field="filterByDate" from-field="nowDate"/>
</actions>
<widgets/>
</section>
<decorator-screen name="CommonProjectDecorator" location="${parameters.mainDecoratorLocation}">
<decorator-section name="body">
<include-menu name="ProjectSubTabBar" location="component://projectmgr/widget/Menus.xml"/>
<container style="clear"/>
<screenlet name="findProject" collapsible="true" title="${uiLabelMap.PageTitleFindProject}">
<include-form name="FindProject" location="component://projectmgr/widget/forms/ProjectForms.xml"/>
</screenlet>
+6 -2
View File
@@ -122,10 +122,14 @@
odd-row-style="alternate-row" default-table-style="basic-table hover-bar">
<actions>
<set field="parameters.workEffortTypeId" value="PROJECT"/>
<set field="fieldList[]" value="workEffortId"/>
<set field="fieldList[]" value="lastStatusUpdate"/>
<service service-name="performFind" result-map-list="listIt">
<field-map field-name="fieldList" from-field="fieldList"/>
<field-map field-name="inputFields" from-field="parameters"/>
<field-map field-name="entityName" value="WorkEffort"/>
<field-map field-name="orderBy" value="lastStatusUpdate DESC"/>
<field-map field-name="entityName" value="WorkEffortAndPartyAssign"/>
<field-map field-name="distinct" value="Y"/>
<field-map field-name="orderBy" value="-lastStatusUpdate"/>
</service>
</actions>
<row-actions>