[
https://issues.apache.org/jira/browse/OFBIZ-6228?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14394131#comment-14394131
]
Adrian Crum commented on OFBIZ-6228:
------------------------------------
That feature has been deprecated. Use a permission service instead. There are
many examples in the project.
> The role permission function fail
> ---------------------------------
>
> Key: OFBIZ-6228
> URL: https://issues.apache.org/jira/browse/OFBIZ-6228
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Trunk
> Reporter: Jiancai Hao
> Labels: permission, role
>
> When set a service by role permission like that:
> <service name="learningCallingServiceOneWithPermission" engine="java"
> location="org.ofbiz.learning.learning.LearningServices"
> invoke="callingServiceOne">
> <description>First Service Called From The
> Controller</description>
> <required-permissions join-type="OR">
> <!-- <check-permission permission="LEARN_VIEW" /> -->
> <check-role-member role-type="CUSTOMER"/>
> </required-permissions>
> <implements service="learningInterface" />
> </service>
> ...
> and then assign the partyId for example 10010 with the role of "CUSTOMER".
> Login using this party and call the service
> "learningCallingServiceOneWithPermission", the party don't get the permission.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)