We have customers that have many users, and each user can only view/create/edit/delete content only in some sections in a complex hierarchy, based on the department they are working. The other sections where they don’t have any permission, should not even
appear to those users.
as an example and supposing that we have users with roles A, B and C:
- Home (edited by role A)
- UK (Managed by role B)
- England (Managed by role B and role C)
Users with role C, can only manage and view news in “England” section.
How can I implement this behavior in Orchard?
Any tip about this? Something I can investigate or try?
Mar 28, 2014 at 7:58 PM
Edited Mar 28, 2014 at 8:01 PM
You can do it without coding but it is quite tedious:
Create 2 new content Items: SpanishPage and FrenchPage (with body, autoroute , title etc...)
Create 2 new roles: FranceAuthorRole, SpainAuthorRole.
For both roles, remove all the permissions in the "Contents Feature" Section.
Again for both roles, add "Access Admin Panel" and "Access Site Front-End" in the "Orchard.Framework Feature".
For the "FranceAuthorRole" enable all the permissions in the "FrenchPageArea".
For the "SpanishAuthorRole" enable all the permissions in the "SpanishPageArea"
Create 3 new users:
FrenchAuthorUser , assign ONLY the "FranceAuthorRole".
SpanishAuthorUser, assign ONLY the "SpainAuthorRole".
EuropeanEditorUser, assign ONLY the "FranceAuthorRole" and "SpainAuthorRole".
Logout and login with each one of the users names and you should be able to edit and publish only pages for the author's country if you login as FrenchAuthorUser or SpanishAuthorUser. And you will be able to see and edit all european countries if you log in
Repeat the process for each country and continent ... :(