This project is read-only.

UAC based on User Profile fields

Topics: Customizing Orchard, Writing modules
Jun 24, 2014 at 3:39 PM
Edited Jun 24, 2014 at 3:40 PM

I need to develop an attachable Content Part that will control visibility of the whole container depending on a set of a user profile's custom fields.
Can you suggest some solution, pls.
Jun 24, 2014 at 8:05 PM
Isn't the built-in Content Permission module doing exactly this?
Jun 25, 2014 at 1:19 PM
Hello Piedone,

Content Permission module allows to configure content availability for users by different roles. What I need to have is the Part that, being attached to Content Type, will allow to configure visibility of a Content Item instantiated from the Content Type by User Profile fields.

For example, there are Sales Organisation and Country fields in User Profile, so a Content Item with the new Part allows to setup during creation Sales Organisation and Country for it.
So if an editor has created a Content Item for Baltic Sales Organisation and Lithuania, this Content Item will not be available for another user who is in Baltic Sales Organisation but from Latvia.