some more corrections on internal notes: now possible to edit other users comunication events if the relationship is properly registered in partyrelationship
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@778094 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
+7
-16
@@ -34,12 +34,7 @@ under the License.
|
||||
<set field="updStat.statusId" value="COM_ROLE_READ"/>
|
||||
<set field="updStat.userLogin" from-field="userLogin"/>
|
||||
<call-service service-name="setCommunicationEventRoleStatus" in-map-name="updStat"
|
||||
include-user-login="false"/>
|
||||
<else>
|
||||
<add-error>
|
||||
<fail-property property="MyPortalNoAccess" resource="MyPortalUiLabels"/>
|
||||
</add-error>
|
||||
</else>
|
||||
include-user-login="false"/>
|
||||
</if-compare>
|
||||
</if-compare>
|
||||
</simple-method>
|
||||
@@ -47,19 +42,15 @@ under the License.
|
||||
<simple-method method-name="checkCommEventAccess"
|
||||
short-description="check if the user has access to the email of this party">
|
||||
<set field="found" value="false"/>
|
||||
<if-compare-field operator="not-equals" field="parameters.partyId"
|
||||
to-field="userLogin.partyId">
|
||||
<entity-and list="emailOwners" entity-name="PartyRelationship"
|
||||
filter-by-date="true">
|
||||
<if-compare-field operator="not-equals" field="parameters.partyId" to-field="userLogin.partyId">
|
||||
<entity-and list="emailOwners" entity-name="PartyRelationship" filter-by-date="true">
|
||||
<field-map field-name="partyIdFrom" value="${userLogin.partyId}"/>
|
||||
<field-map field-name="roleTypeIdFrom" value="EMAIL_ADMIN"/>
|
||||
<field-map field-name="partyIdTo" from-field="parameters.partyId"/>
|
||||
</entity-and>
|
||||
<iterate entry="emailOwners" list="emailOwner">
|
||||
<if-compare operator="equals" value="${userLogin.partyId}"
|
||||
field="emailOwner.partyIdTo">
|
||||
<set field="found" value="true"/>
|
||||
</if-compare>
|
||||
</iterate>
|
||||
<if-not-empty field="emailOwners">
|
||||
<set field="found" value="true"/>
|
||||
</if-not-empty>
|
||||
<else>
|
||||
<set field="found" value="true"/>
|
||||
</else>
|
||||
|
||||
+2
-3
@@ -69,9 +69,8 @@ under the License.
|
||||
<field-map field-name="partyId" from-field="parentCommEvent.partyIdFrom"/>
|
||||
</entity-one>
|
||||
|
||||
<if-compare-field field="parentCommEvent.partyIdFrom" operator="equals" to-field="parameters.partyIdTo">
|
||||
<set field="newEntity.partyIdTo" from-field="parentCommEvent.partyIdFrom"/>
|
||||
</if-compare-field>
|
||||
<set field="newEntity.partyIdFrom" from-field="parameters.partyIdFrom" default-value="parameters.userLogin.partyId"/>
|
||||
<set field="newEntity.partyIdTo" from-field="parentCommEvent.partyIdFrom"/>
|
||||
|
||||
<set field="newEntity.subject" value="RE: ${parentCommEvent.subject}"/>
|
||||
|
||||
|
||||
@@ -393,10 +393,9 @@
|
||||
<link target="NewDraftCommunicationEvent">
|
||||
<parameter param-name="communicationEventTypeId" from-field="communicationEvent.communicationEventTypeId"/>
|
||||
<parameter param-name="parentCommEventId" from-field="communicationEvent.communicationEventId"/>
|
||||
<parameter param-name="partyIdFrom" from-field="parameters.partyId"/>
|
||||
<parameter param-name="my" value="My"/>
|
||||
<parameter param-name="statusId" value="COM_PENDING"/>
|
||||
<parameter param-name="partyIdTo" from-field="communicationEvent.partyIdFrom"/>
|
||||
<parameter param-name="partyIdFrom" from-field="parameters.partyId"/>
|
||||
</link>
|
||||
</menu-item>
|
||||
<menu-item name="forward" title="${uiLabelMap.PartyForward}">
|
||||
|
||||
Reference in New Issue
Block a user