Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: RE: Custom field does not show up for regular user when creating/editin
As an administrator, I've created a custom field, "Propagate Permissions" for document library folders. It's a true/false field. I can edit folders and set the custom field and everything works fine.
But if a regular user creates a folder, the custom field is not shown on the edit page. And when the user edits that folder, the custom field still does not appear.
Is this the correct behavior? If so, why? If a user can create an object, and edit or delete it, shouldnt that user be able to set the value of a custom field?
This is not an answer, just follow-up information. This is the edit page for an administrator, custom field shows up:
Finally, the edit page as seen by the regular user who created the folder:
Based on a little testing with the latest 7.4, it looks like the user needs to be in a Role with these permissions:
Custom Fields > Custom Field: View
Custom Fields > Custom Field: Update
The owner role should have all permissions from what I can see, is that what you're referring to? But the field doesn't show up for the owner of the folder.
Also, if I give the "User" role the View and Update permissions on the custom field then the owner of the folder can see and edit the field. But so can any other authenticated user, which is not what we want.
I wouldn't give those permissions to the User Role. I'd probably create a new role, or give it to the same Role that allows your users to create and edit document folders, or reuse the Portal Content Reviewer Role.
Powered by Liferay™