Forums

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

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Boden Larson
Wiki portlet permissions problem
August 19, 2008 3:21 PM
Answer

Boden Larson

Rank: Regular Member

Posts: 200

Join Date: July 10, 2008

Recent Posts

I can't seem to find a way to restrict community members from updating newly created Wiki pages in the Wiki portlet.

I removed all permissions except view for "community member" from the Wiki portlet config, and also configured the same permissions on the main wiki page.

However, when new Wiki pages are created, anyone in a community member role can update the new pages. This means that the guys running the wiki have to remember to manually set the permissions on every page they create. This slows things down.

I also tried the Wiki Display portlet with the same results.

Anyone?
Boden Larson
RE: Wiki portlet permissions problem
August 19, 2008 3:31 PM
Answer

Boden Larson

Rank: Regular Member

Posts: 200

Join Date: July 10, 2008

Recent Posts

Update, I also assigned Wiki portlet permissions to the community member role, allowing only view, and this didn't help either.
Ray Augé
Re: [Liferay Forums][2. Using Liferay] RE: Wiki portlet permissions problem
August 19, 2008 3:55 PM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1171

Join Date: February 7, 2005

Recent Posts

Assuming you are using the bundle, look inside the
ROOT/WEB-INF/lib/portal-impl.jar and find the file
resource-actions/wiki.xml.

1) Copy this file into
ROOT/WEB-INF/classes/resource-actions/wiki.xml (create folders
that are missing, but keep exact path).

2) Open this file with a text editor.

3) Locate the area referencing the WikiPage, which looks like this:

 1    <model-resource>
 2        <model-name>com.liferay.portlet.wiki.model.WikiPage</model-name>
 3        <portlet-ref>
 4            <portlet-name>36</portlet-name>
 5        </portlet-ref>
 6        <supports>
 7            <action-key>ADD_DISCUSSION</action-key>
 8            <action-key>DELETE</action-key>
 9            <action-key>PERMISSIONS</action-key>
10            <action-key>SUBSCRIBE</action-key>
11            <action-key>UPDATE</action-key>
12            <action-key>VIEW</action-key>
13        </supports>
14        <community-defaults>
15            <action-key>ADD_DISCUSSION</action-key>
16            <action-key>SUBSCRIBE</action-key>
17            <action-key>UPDATE</action-key>
18            <action-key>VIEW</action-key>
19        </community-defaults>
20        <guest-defaults>
21            <action-key>VIEW</action-key>
22        </guest-defaults>
23        <guest-unsupported>
24            <action-key>ADD_DISCUSSION</action-key>
25            <action-key>SUBSCRIBE</action-key>
26            <action-key>UPDATE</action-key>
27        </guest-unsupported>
28    </model-resource>


4) Notice that by default community-defaults contains
UPDATE. In your copy of the file, remove the UPDATE
reference from community-defaults.

5) Save

6) Restart the portal.

Note, this will only affect NEW Pages, BUT will also be a portal wide
behaviour change, yet it's a perfectly safe modification.

HTH!
Boden Larson
RE: Re: [Liferay Forums][2. Using Liferay] RE: Wiki portlet permissions pro
August 20, 2008 7:47 AM
Answer

Boden Larson

Rank: Regular Member

Posts: 200

Join Date: July 10, 2008

Recent Posts

Thanks Ray, saved me again!

I wonder though if this should be the correct behavior. It seems like these permissions should be overridden with user-specified permisisons. Hidden permissions aren't a lot of fun. emoticon
Ray Augé
RE: Re: [Liferay Forums][2. Using Liferay] RE: Wiki portlet permissions pro
August 20, 2008 7:03 PM
Answer

Ray Augé

LIFERAY STAFF

Rank: Liferay Legend

Posts: 1171

Join Date: February 7, 2005

Recent Posts

You're right of course.

But, fixing permissioning is an evolutionary task. It one of our biggest
missions, but it's gonna take time, but rest assured we're working on
it. We've already made some pretty big changes, and there's more to
come.
Boden Larson
RE: Re: [Liferay Forums][2. Using Liferay] RE: Wiki portlet permissions pro
August 21, 2008 9:33 AM
Answer

Boden Larson

Rank: Regular Member

Posts: 200

Join Date: July 10, 2008

Recent Posts

Looking forward to it Ray. I have to say that the whole permissions system is what gives me the most trouble on a day to day basis using Liferay.

Communities, organizations, roles, groups, users, public & private areas, portlet-specific permissions, hidden defaults, property files. It's just too much to keep straight. One feature that might help in the meantime would be some sort of reporting tool by which the user could generate reports of portal-wide permissions based on user, group, role, etc. Digging this information up manually is difficult, and I've in some cases just completely recreated users just to be sure that they didn't have any lingering permissions that I forgot about.
Senthil Chockalingam
RE: Re: [Liferay Forums][2. Using Liferay] RE: Wiki portlet permissions pro
June 28, 2010 5:27 AM
Answer

Senthil Chockalingam

Rank: Junior Member

Posts: 58

Join Date: January 18, 2010

Recent Posts

Dear Team,


we've gave view permission for the end user to access the WIKI, But that user can Edit the Wiki and he can revert the previous Version also(i.e for end user revert option also working). Please help us on.



Actually i want only give the View Access to End User. And for particualr user i want to give updated permission. it's is possible to keep the Revert option for Admin(Owner)?
this.emoticonemoticon
Senthil Chockalingam
RE: Re: [Liferay Forums][2. Using Liferay] RE: Wiki portlet permissions pro
June 28, 2010 5:36 AM
Answer

Senthil Chockalingam

Rank: Junior Member

Posts: 58

Join Date: January 18, 2010

Recent Posts

If i use this Wiki.xml code in my portal, then my permission Page list option is empty(i.e. No check's box are there )

And How to remove the Revert option for End user?

Because we want to give this option to Wiki ADMIN only.
Kiran Kulkarni
RE: Re: [Liferay Forums][2. Using Liferay] RE: Wiki portlet permissions pro
February 4, 2014 3:24 AM
Answer

Kiran Kulkarni

Rank: New Member

Posts: 6

Join Date: December 2, 2013

Recent Posts

Hi,
Has anyone found a solution for this. I am having a similar issue.
I have created a site where I have set two roles. Role 1 has been set to user1 with all permissions for Wiki and "VIEW " permission for user2 in Role2. But when I login as user2, I am able to edit the Wiki page. How do I restrict the user2 from editing, adding and modifying the content on the wiki.

P.S: User1 and User2 are members of site.
Kiran Kulkarni
RE: Re: [Liferay Forums][2. Using Liferay] RE: Wiki portlet permissions pro
February 4, 2014 3:26 AM
Answer

Kiran Kulkarni

Rank: New Member

Posts: 6

Join Date: December 2, 2013

Recent Posts

Hi,
I am facing a similar issue. Can you please guide me on this one.

I have created a site where I have set two roles. Role 1 has been set to user1 with all permissions for Wiki and "VIEW " permission for user2 in Role2. But when I login as user2, I am able to edit the Wiki page. How do I restrict the user2 from editing, adding and modifying the content on the wiki.

P.S: User1 and User2 are members of site.