Forums

Covering OroCRM topics, including community updates and company announcements.  Subscribe

This topic contains 2 replies, has 2 voices, and was last updated by Madhur Madhur 1 year, 10 months ago.

  • Creator
    Topic
  • #16020
    Madhur
    Madhur
    Participant

    Hi,

    I created a bundle and the entity as given in the documentation.

    The bundle works perfectly for Admin user. When a user with Sales Manager role logs in, he is not able to view the datagrid. My custom entity ownership is Organization. I have given all the permissions for the custom entity to the Sales Manager role. In-spite of that the user is not able to view the records.

    The logs show one thing:

    When I check in the profiler, the sql statement that is executed has one “AND (1 = 0)” condition added to it. Now I dont know from where this “And” condition is being appended.
    Let me show you the code:
    The Entity Class (Excerpt):

    and the datagrid.yml is

    So what is wrong? What is ACE?

    The Sales Manager user is able to view the detail view, able to create and also delete the record. But the datagrid is giving problems.

    Thanks and Regards,
    Madhur

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

    Yurii Muratov
    Oro Core

    Hi, @mhalapeti.

    Your grid is empty because your user have not access to Organization entity.

    You can change inner join to left. In this case, for this user you should see the records and empty ‘Organization’ column.

    So, your grid definition will be:

    #16037
    Madhur
    Madhur
    Participant

    Yurii,

    You are a life saver. :)

    Great, thanks. It worked perfectly. I didn’t really think in those terms.

    Wonderful.

    Thanks and Regards,
    Madhur

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

You must be logged in to reply to this topic.

ssossossosso