Forums OroPlatform OroPlatform – How do I? Questions How do I display action buttons in datagrid based on object ACL

This topic contains 1 reply, has 1 voice, and was last updated by  PaNa 2 years, 5 months ago.

  • Creator
  • #30372


    Hi there,

    I’m trying to display the action buttons (view,edit..) for an entity in the datagrid, based on the object-based ACL, if set for the user/role. Otherwise the class-based ACL should be used.

    Will using ACL annotation always lead to a class based decision? I already tried an approach with the @ParamConverter annotation. But it seems users get no permission to display the entity, even if they have access on class level and no object-based ACL is specified.

    What is a good approach for the problem?
    Many thanks in advance.

Viewing 1 replies (of 1 total)
  • Author
  • #30373



    for me this is working: I used the action_configuration in the datagrid. Registered the service and used the SecurityFacade abd the DoctrineHelper to decide if permission is granted or not.

    Works fine. Any better solutions?

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.