RE: ExpandoBridge permission

Iñigo Boyano, modified 6 Years ago. Junior Member Posts: 96 Join Date: 2/4/14 Recent Posts
Hi, 

I've developed a portlet and in this portlet i set an expandoBridge field for Documents And Media folder, but when I tried to read it from other portlet, this field gives me a null value when a non administration role and the correct value with a administration role, so , i think its a permission matter for documents folder expando bridge but i can´t find which permission i have to check.

can anyone help me¿?

Kind regards,  

​​​​​​​Iñigo
Iñigo Boyano, modified 6 Years ago. Junior Member Posts: 96 Join Date: 2/4/14 Recent Posts
I've realized that normal roles have the posibility to define permissions for control panel, and inside it, for expando bridges in setup, but, in webSites roles where i need to define the role, this funcionality is not available.

Is there any way to grant see access to expando bridges for a webSite Role?

Kind regards, 
thumbnail
Amos Fong, modified 6 Years ago. Liferay Legend Posts: 2047 Join Date: 10/7/08 Recent Posts
I don't think you can give a site role permissions to an expando field because they are scoped portal-wide and not by site. Are you reading the custom field in your own portlet? Since you can control permissions in your own code, I would use this expandoBridge method with secure = false.
getAttribute(String name, boolean secure)

The other options would be to permission the custom field with VIEW permission to all users, or to be more restrictive, a role with your site assigned to it.