This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Portals and Portlets and the fly likes Assigning Portlet permission to a Role Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Portals and Portlets
Reply Bookmark "Assigning Portlet permission to a Role" Watch "Assigning Portlet permission to a Role" New topic
Author

Assigning Portlet permission to a Role

Vinu Neelambaran
Greenhorn

Joined: Nov 22, 2010
Posts: 3
I wanted to assign permission based on roles.

- Logged-in as admin user.

- Created a role named "Test Role". Currently, there are no permissions assigned to the role.

- Created a user named "Katy".

- Assigned the "Test role" to "Katy". Removed the “Power User” role.

- Now, admin user views the public page of the user and add a portlet named "My Test Portlet".

- Admin user sign-out

- Logged-in as Katy and views the home page. The user is able to see the home page with "My Test Portlet".



My question: How the user katy is able to view the "My Test Portlet" as the "Test Role" do not have any privileges. I expect the user should see the error message “Access denied”. Please clarify my doubt.



Note: I’m using Liferay Community edition 6.0.4



Thanks in advance.
Vinu
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Assigning Portlet permission to a Role
 
Similar Threads
Showing or hiding portlet or pages based on the user attributes
Removing of the JBOSS Catch for Custom Login Module when Roles changes
how to redirect to success page in tomcat using its lapd configuration
Issues in Portlet and Page permission
Portal Server Administration Problem