Details
-
Technical Task
-
Status: Closed
-
Resolution: Completed
-
6.2.10 EE GA1, 6.2.X EE, 7.0.0 M5
-
6.2.x
-
Committed
Description
It looks like it is currently not possible to create a portal user role with VIEW permissions on a custom field without causing the custom field value to be lost upon saving the web content. The only workaround I found so far is to give UPDATE permission as well on the custom field for such role.
Reproduction steps:
- Start vanilla Liferay and login with OmniAdmin user
- Go to Admin > Control Panel > Roles
- Create a new regular role called editor
- Define the following permissions for such role:
Custom Fields > Custom Field: View
Web Content > Web Content Article: Update - Go to Users and Organizations, Add a new user called contenteditor, assign him to the Liferay site with role editor
- Go to Control Panel > Configuration > Custom Fields > Web Content Article
- Click Add Custom Field. Key: "Approver" // Type: Text Field - Indexed. Save
- Go to the Welcome page and place a Web Content Display portlet onto it
- Click + Add. Add a title and content
- Click on Custom Fields and under "Approver" type "readonlyfield". Click Publish.
- Click again Edit, then Custom Fields and assert the text "readonlyfield" has been saved and it's visible. Close the window without making any change
- Login with the contenteditor user and open the web content in edit mode. Assert that the custom field value is visible in read only mode
- Publish the web content without making any change. Open again the web content in edit mode and check the Custom field value:
Expected: The value to be preserved and visible in read only mode
Actual behavior: the custom field value has disappeared
Attachments
Issue Links
- relates
-
LPE-13840 Custom field value is lost when a user does not have EDIT permission while editing a web content with custom field
-
- Closed
-