OroPlatform Forums

Covering OroPlatform topics, including community updates and company announcements.

Forums Forums OroPlatform OroPlatform – Programming Questions How to get Entity Permission Information Based on Role Provided

This topic contains 2 replies, has 2 voices, and was last updated by  shreyas 5 years ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #38253

    shreyas
    Participant

    Hi Team ,

    We are trying to fetch Permission i.e View, Edit , Create ,Delete for specific entities and also type set for it like Global , Business Unit, User , None based on Role specified. We are stuck on how to get this information.
    We looked for document reference from https://github.com/oroinc/platform/blob/master/src/Oro/Bundle/SecurityBundle/Resources/doc/acl-manager.md and tried following similar steps where in we need to fetch Permission information instead of adding of permissions like is given below – Use case is we would have logged in as user of different role (like Manager ROLE) but need to get other Role information (like SALESMAN ROLE):

    But we are not getting result which we need. Please need help if any resource / guidance on how to fetch the Permission related information based on Role Specified & not on User Token / Logged in User.
    There is some masking operation taking place which we are not clear. We also tried looking at Roles View Module but could not figure out.

    Thanks & Regards,
    Shreyas S

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #38306

    Andrey Yatsenko
    Moderator

    Permissions can be granted or denied by various reasons, ACL is not the only Voter used by Oro.

    So there is no way to easily get entity permission. You can only check it with AuthorizationChecker::isGranted() method

    #38668

    shreyas
    Participant

    Thanks Andrey for the guidance.

    Thanks & Regards,
    Shreyas S

Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroPlatform – Programming Questions’ is closed to new topics and replies.

Back to top