OroCRM Forums

Covering OroCRM topics, including community updates and company announcements.

Forums Forums OroCRM OroCRM – Programming Questions ACL On export of datagrid

This topic contains 5 replies, has 3 voices, and was last updated by  golriz.nourani 6 years, 5 months ago.

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

  • Creator
    Topic
  • #25252

    golriz.nourani
    Participant

    Dear Sir
    I set capacity of export false on role management but users with that role can export from data grid.
    could you help me?
    thanks
    Golriz

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • #25253

    abel
    Participant

    As I understand, you want export data from datagrid?
    If true, you can use

    in config datagrid

    #25254

    golriz.nourani
    Participant

    Dear Abel
    I set option of export true for all datagrid but I don’t want all user can get export so I set export capacity of some role false to prevent them get export .
    is there any acl of Capabilities for export of datagrid?
    thanks

    #25255

    abel
    Participant

    Sorry nourani!
    I do not have any idea for this problem.
    May be someone in oro team can help you :)

    #25256

    Mike Kudelya
    Participant

    Hi,

    By default capability Export Entities works with Export button at top-right angle of site. You must create new acl resource on your bundle depending on which version of platform you are using. For example <= 1.9 or >=1.10 with category option. My new datagrid export resource is:

    Further i have modified vendor/oro/platform/src/Oro/Bundle/DataGridBundle/Extension/Export/ExportExtension.php (you must extend this file in your bundle):

    After that don’t forget run:

    and add security facade to your extension:

    #25257

    golriz.nourani
    Participant

    Hi Mike
    Today again I use your guild . I must say thanks a lot.
    Golriz

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

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

Back to top