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

Forms View Permission cannot be re-added after removal

    Details

      Description

      Summary
      When removing the Forms site from the Site Page View Permissions in the User Role, there is no way for the Forms to be added back in.

      Steps to Reproduce:

      1. Create a new form.
      2. Once published, modify the Form's setting and enable "Require User Authentication".
      3. Publish the form.
      4. Attempt to view the form as a guest user.
      5. Verify the form is not visible.
      6. Create a new user and attempt to view the form as said user.
      7. Verify the form is visible.
      8. Navigate to the following area within the Control Panel "CP > Users > Roles > User > Define Permissions > Site Administration > Site Builder > Pages > Page > VIEW".
      9. You will see that Forms and User Personal Site are already filled in by default.
      10. Remove Forms from the View Permissions.
      11. Wait for the permission cache to clear or run groovy script at the bottom of the description.
      12. Attempt to view the form as the authenticated user again.
      13. Verify the authenticated user can no longer view the form (intended).
      14. Regret that you removed the forms selection and try to add it back in by clicking Change.

      Expected Result:
      One of the selections is Forms so I can add that back.

      Actual Result:
      Forms is not listed for me to select.

      Reproduced In
      master: 6db75964492e75ae4b717b17526dfaf3b73c26bb
      72x: 86b672b857b63239af2eb2ebea6debabc30c53ad

      Errors/Logs:
      No errors or logs are created.

      Groovy script to clear PermissionCache:

      import com.liferay.portal.security.permission.PermissionCacheUtil;
      PermissionCacheUtil.clearCache(); 

        Attachments

          Activity

            People

            Assignee:
            della.wang Della Wang (Inactive)
            Reporter:
            christopher.kian Christopher Kian
            Participants of an Issue:
            Recent user:
            Jason Pince
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              1 year, 12 weeks, 5 days ago

                Packages

                Version Package
                7.2.10 DXP FP4
                7.2.X
                7.3.0 CE GA1
                7.3.10 DXP GA1
                Master