Jump to content

Per branch permission


verdeandrea
 Share

Recommended Posts

Hi guys,

I have this structure:

- page group A (template group)
--- events group A (template group_events_list)
------ event 1 (template group_event)
------ event 2 (template group_event)
...
--- news group A (template group_news_list)
------ news 1 (template group_news)
------ news 2 (template group_news)
...

- page group B (template group)
--- events group B (template group_events_list)
------ event 1 (template group_event)
------ event 2 (template group_event)
...
--- news group B (template group_news_list)
------ news 1 (template group_news)
------ news 2 (template group_news)
...

- page group C (template group)
--- events group C (template group_events_list)
------ event 1 (template group_event)
------ event 2 (template group_event)
...
--- news group C (template group_news_list)
------ news 1 (template group_news)
------ news 2 (template group_news)
...

So every group has the same structure with events and news but they share the same template. Now, i would like to limit access for group admin to a specific group branch so that the group A admin, can access, edit, and create/delete new pages for group A, but i can not edit other group. The same for group B admin, and so on.

I understand that the best idea would be to use a template - role access, but i don't want to create a different template for every group, since every group page has the same fields, structure etc.

I've tried this module http://modules.processwire.com/modules/page-edit-per-user/ (even if it says just to pw 2.4 and i'm using pw 2.7.2) and i can limit access to just one group per user, but just for editing pages, not for creating new ones. And if i give page creation permission to a template, let's say group_events_list, for a specific role, than that role can create pages for every group events.

How can i limit editing and creating permission just for a single group (and its children pages) per user. Is it possible?

Thanks a lot!

Link to comment
Share on other sites

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
 Share

×
×
  • Create New...