Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
emad darvishi
Set permission to Folder after created in document and media
August 13, 2013 2:11 PM
Answer

emad darvishi

Rank: Junior Member

Posts: 37

Join Date: September 11, 2012

Recent Posts

hi.

i created folder programmically . how to set permission to view this folder programmically?
Tomas Polesovsky
RE: Set permission to Folder after created in document and media
August 16, 2013 12:46 PM
Answer

Tomas Polesovsky

LIFERAY STAFF

Rank: Liferay Master

Posts: 601

Join Date: February 13, 2009

Recent Posts

Hi,

what LR version do you use? Did you change permission algorithm?

If you use default settings of Liferay 6.1 GA2, you can ResourcePermissionLocalServiceUtil.addResourcePermission(), you can find the implementation here https://github.com/liferay/liferay-portal/blob/6.1.1-ga2/portal-impl/src/com/liferay/portal/service/impl/ResourcePermissionLocalServiceImpl.java#L114