Possible that Editor can not modify Wiki-Parts?

LabKey Support Forum (Inactive)
Possible that Editor can not modify Wiki-Parts? Aleks  2016-10-26 00:34
Status: Closed
 
Hallo Everyone,

I need to give a user the rights to edit, update and delete the content of all tables. Also if he didn't create this content. This is possible by adding the user to the Editor-Group. Unfortunately, because I have to use wiki-parts to add some extra functionality, this user can also modify the source-code of all wiki-pages.

Is it possible to give a user permissions to edit, update and delete the content of all tables also if he didn't create this content but forbid him to modify wiki-pages?

Thank you,
Aleks
 
 
Jon (LabKey DevOps) responded:  2016-10-26 22:19
Hi Aleks,

The users rights are applied on the container that the wiki pages are stored, so there's no way to specifically make it so the wiki parts are not editable if a user has Editor permissions or Admin permission on the container.

However, if you did make them Editors, you could potentially prevent them from making any further modifications from a wiki page if the wiki page has a <script> tag in it. Wikis can only be saved by Admins or those with the Developer role enabled for their permissions. Potentially, if someone was an Editor, they wouldn't be able to save any wiki pages that have script tags in them without the Developer role. So if you add script tags in your wikis, that should effectively give you the prevention you're looking for.

Regards,

Jon
 
Jon (LabKey DevOps) responded:  2016-10-27 10:56
Hi Aleks,

My apologies. I forgot that an editor could simply remove those tags.

But there is another option that I think can work for you though.

If you host the wiki pages in another container where these editors only have read access, you could create custom wiki webparts in your main container where they point to that other container. Effectively, this would prevent that person who has editor permissions from editing those wikis since they don't have editor rights to the other container.

Does that make sense?

Regards,

Jon
 
Aleks responded:  2016-10-28 02:50
Thank you. I will try it out.