Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
Quan Pham
Model Resource Permissions Set
6. April 2013 19:14
Antwort

Quan Pham

Rang: New Member

Nachrichten: 2

Eintrittsdatum: 5. März 2013

Neue Beiträge

I am coding a portlet that allows user to share their own notes for specific roles. (Book is a model)

 1<c:if test="<%= themeDisplay.getUserId()==book.getUserId() %>">
 2<liferay-security:permissionsURL
 3modelResource="<%= Book.class.getName() %>"
 4modelResourceDescription="<%= book.getName() %>"
 5resourcePrimKey="<%= String.valueOf(book.getBookId) %>"
 6var="permissionsURL"
 7/>
 8<liferay-ui:icon image="permissions" url="<%=permissionsURL.toString() %>" />
 9</c:if>


Which allow owner of the book can set Permission of that book on selected roles.
But when i click on Permission Button of Resource, it ONLY showed Guess Role up.

How can i make others Roles available for user to select and set Action Roles for selected Roles.

Help me pleaze!
Thanks in advance.
Quan Pham
RE: Model Resource Permissions Set
6. April 2013 19:52
Antwort

Quan Pham

Rang: New Member

Nachrichten: 2

Eintrittsdatum: 5. März 2013

Neue Beiträge

I found the Solution! That you have to define this User Role can manage other Role (Add, grant Permission) in Administration Control Panel!

emoticon

Participate in the State of Liferay Community 2017. Help the community and even win some prizes!