Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Dariusz Sawicki
Default permission for action-key
February 13, 2012 7:00 AM
Answer

Dariusz Sawicki

Rank: Regular Member

Posts: 165

Join Date: March 27, 2009

Recent Posts

Hello
How I can set default permission for action-key ?
for example i have in resource-acition-mapping :
<action-key>TEST_PERM</action-key>

And I want to set this for role "MY_ROLE" - role is already created in LF.
I know that I can set this action-key in render method by
ResourcePermissionLocalServiceUtil.setResourcePermissions(..)
but it's will be every time update during refresh page;

Can I set this permision for this action-key in .xml or other way ?

Regards
Darek
Dariusz Sawicki
RE: Default permission for action-key
February 17, 2012 7:45 AM
Answer

Dariusz Sawicki

Rank: Regular Member

Posts: 165

Join Date: March 27, 2009

Recent Posts

Nobody knows?
I updated it in render method. It's good solution?