Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-145473

Relationship field and tab are displayed when user does not have access to all the objects involved

Description

    Summary:
    Relationship field and tab are displayed when user does not have access to all the objects involved

    Steps to Reproduce:

    1. Go to Object Admin
    2. Create an Object A with a field and an Object B with a field
    3. Create a relationship One-To-Many from Object A to Object B
    4. Go to Object A > Layouts > Create a Layout with the Relationship tab
    5. Publish both objects
    6. Create an Object C with a field and an Object D with a field
    7. Create a relationship One-To-Many from Object C to Object D
    8. Publish both objects
    9. Add some entries on all the objects
    10. Go to Control Panel > Roles > Create a Regular Role
    11. Click on "Define Permissions" > Search for Object A > Give all the permissions and save
    12. Search for Object D > Give all the permissions and save
    13. Go to Control Panel > Users and Organizations
    14. Create an User A and assign the created role to it
    15. Log in on User A
    16. Go to Object A > Click to edit an entry > Click on the Relationship tab > Click to add an entry
    17. Go to Object D > Click to edit or add a new entry

    Expected Result:
    Relationship field and tab are not displayed

    Actual Result:
    Relationship field and tab are displayed

    Verified on master: 52c435261679ed9eb62b7aafb24b0b8d2fe357aa

    Attachments

      Issue Links

        Activity

          People

            luiz.jardim Luiz Jardim
            rodrigo.cunha Rodrigo Cunha (Inactive)
            Kiyoshi Lee Kiyoshi Lee
            Paulo Albuquerque Paulo Albuquerque
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              43 weeks, 6 days ago

              Packages

                Version Package