Forums

Home » Liferay Portal » English » 2. Using Liferay » General

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ryan Paul Schultz
Limiting Permissions for someone that has created a 'Community'.
January 6, 2011 7:59 AM
Answer

Ryan Paul Schultz

Rank: New Member

Posts: 7

Join Date: October 16, 2009

Recent Posts

I have given the 'Power User' permissions to 'Add a Community'.

After adding a community, I would like to limit the 'Power User' to only do the following.

-Edit
-Leave
-Delete

I 'do not' want them to have permissions or even see the options for

-Manage Pages
-Manage Teams
-Assign User Roles
-Assign Members

I've spent a considerable amount of time try to tweak the 'permissions' and 'define permissions' for various 'roles', including the 'power user', but can not for the life of me, turn these options off.

Hope there's a relatively easy solution, I'm just not seeing.

Thanks in advance.
Best, Ryan
James Falkner
RE: Limiting Permissions for someone that has created a 'Community
January 12, 2011 6:56 AM
Answer

James Falkner

Community Moderator

Rank: Liferay Legend

Posts: 1406

Join Date: September 17, 2010

Recent Posts

Don't think this is possible - the problem is that the creator of a community is the owner, who has the innate ability to manage all aspects of that community. You would have to write some custom code to change their permissions within that community to just be a community member, not an owner.
Minhchau Dang
RE: Limiting Permissions for someone that has created a 'Community
January 12, 2011 9:43 AM
Answer

Minhchau Dang

LIFERAY STAFF

Rank: Expert

Posts: 349

Join Date: October 22, 2007

Recent Posts

James Falkner:
You would have to write some custom code to change their permissions within that community to just be a community member, not an owner.

This could be as simple as writing a service wrapper hook where the wrapper hard codes the creator user rather than accepts the user that is passed in, but makes sure to add the user to the community as a regular member.

Though, to give them the desired permissions (EDIT and DELETE), you would need to create a custom community role in Liferay and leverage the same service wrapper hook to assign it to the user. That piece might be more complicated than you'd like.
Ryan Paul Schultz
RE: Limiting Permissions for someone that has created a 'Community
January 20, 2011 1:45 PM
Answer

Ryan Paul Schultz

Rank: New Member

Posts: 7

Join Date: October 16, 2009

Recent Posts

Thanks guys... well it's comforting to know that I wasn't missing the 'easy fix'. Thanks again.
Mauricio Gonzales
RE: Limiting Permissions for someone that has created a 'Community
July 1, 2011 7:19 AM
Answer

Mauricio Gonzales

Rank: New Member

Posts: 2

Join Date: March 9, 2011

Recent Posts

Hi guys

I have exactly the same problem, I expended really alotof time trying to resolve the problem, there are a very little documentation . Could they help me please.

Thanks a lot