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

It is not possible to relate entries if the user does not have permission for both Objects

    Description

    Summary:
    It is not possible to relate entries if the user does not have permission for both Objects

    Steps to Reproduce:

    1. Go to Objects
    2. Create an Object A and an Object B with a field
    3. Go to Object A and create a Relationship One to Many with Object B
    4. Choose any Relationship Deletion Type
    5. Create a Layout with that contains the Relationship tab for Object A
    6. Publish them
    7. Add some entries on Object B and one entry on Object A
    8. Click on the Object A entry and add relations with the entries from Object B
    9. Go to Roles
    10. Create a Role > Define Permissions
    11. Search for Object A
    12. Give it all permissions
    13. Create a new user and assign the created Role to it
    14. Log in with the new user
    15. Go to Object A and click to view the entry
    16. Go to the Relationship tab
    17. Try to add a relation with an entry from Object B

    Expected Result:
    Relation is added

    Actual Result:
    Relation is not added

    Verified on master: 2ef2546d5f8ce61aaecc9898bdd386cc6f29aae1

      Attachments

        Issue Links

          Activity

            People

            Assignee:
            andre.farias André Farias
            Reporter:
            rodrigo.cunha Rodrigo Cunha (Inactive)
            Participants of an Issue:
            Recent user:
            Felipe Lins
            Engineering Assignee:
            Mateus Santana
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              40 weeks, 1 day ago

                Packages

                Version Package
                7.4.3.21 CE GA21
                7.4.3.22 CE GA22
                Master