Jump to content

Recommended Posts

Posted

Often needed requirement for our clients:

There is role "Member"

Also role "News editor"

If I have those both roles, then I should be able to edit/add new news (www.domain.com/news/), but also I should be able to access "members only" section (www.domain.com/members/) of our site. But I shouldn't be able to edit anything at "members only" section, only view those pages.

Currently I don't know if this is possible? I think there should be view/edit possibilities on per page (and later per template) basis.

Posted

This is possible. Lets assume that you have already created your two roles.  "News editor" has all the page editing permissions. And "Member" has only view permission (ProcessPageView).

Edit your /news/ page and add the "News editor" role to it (from the page's settings tab).

Edit your /members/ page and add the "Member" role to it. Make sure this page doesn't also have the "News editor" role.

For users that you want to be able to edit /news/ and only view /members/, they should have both the "News editor" and "Member" role. Such users won't be able to edit the /members/ page(s) unless you've also turned on the "News editor" role for that page.

That should achieve what you want. If it's not for some reason, check that you haven't assigned the "News editor" role to the homepage. Roles added at a lower branch are inherited through the site tree until cancelled at a higher branch.

Assuming ProcessWire is working correctly, both the user and the page have to have the same role before the permissions from that role apply to the user. This is how it should work, but let me know if you find it isn't. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...