Restricting logged in users to edit certain pages

Topics: Developer Forum
Oct 26, 2008 at 9:12 AM
Thanks for an amazing CMS solution. I'm hoping you can point me in the right direction!

I would like to create a number of users and give them the ability to each login and update say a single page within the editable site. If they attempt to access/edit a page other than their own, they are prevented from doing so. Those assigned to the administrator role would be able to edit all pages.

All users, including anonymous site visitors would be able to view all pages (when not in edit mode).

Any assistance with how I can achieve this would be very much appreciated.

Oct 26, 2008 at 9:15 AM
would this help?
http://www.n2cms.com/Documentation/Definition/Security.aspx
Oct 26, 2008 at 2:55 PM
Thank-you for the prompt response. It has helped a lot...thanks.

I have put the following in my web.config...

<editors users="" roles="Editors,OtherEditorRole" />

I tried to put multiple editors in, and assign them to separate editor roles,...
 
<editors users="john" roles="Editors"/>
<editors users="fred" roles="OtherEditorRole" />

...but an error message advised I cannot have multiple <editors> tags. Is there another way to distinguish which editor belongs to which editor role?

Thanks!
Coordinator
Nov 1, 2008 at 6:17 PM
Try:

<editors users="john,fred" roles="Editors,OtherEditorRole"/>