cancel
Showing results for 
Search instead for 
Did you mean: 

permissions on custom types

ancapclau
Champ in-the-making
Champ in-the-making
Hi,

I have a custom model and I want to add permisions on my customType to selected groups (groups created by admin with Admin Tools).
Certaing group must have read permision on a node of my custom type, regardless of the location of that node in the repository.
How can I accomplish this ?
2 REPLIES 2

kaynezhang
World-Class Innovator
World-Class Innovator
You can use custom policy/behaviour or rule/action
If you choose to use policy/behaviour ,
   1.implement BeforeSetNodeTypePolicy,OnSetNodeTypePolicy and in your implementation call permission service to set permission for your node.
If you choose to use rule/action:
   1.in your custom action call permission service to set permission for your node
   2.create a rule on root folder and also make the rule applied to sub spaces.the rule will trigger your custom action when a node of your custom type is added.

ancapclau
Champ in-the-making
Champ in-the-making
Isn't a easy way to do this ? I will try to detail what I want to accomplish…
I have a custom model and I want to add permisions on my customType (extension of cm:content) to selected groups (groups created by admin with Admin Tools)
I want for a group of people the permision for the custom type I created to be the sum of
- permision on the folder where I want to create the custom document (done bu admin with UI) and
- permision on the custom type. For ex I want to define Group1 with Consumer Permision for custom type and, in a folder where he has for example coordonator permision (for that folder),
Group1 can't create a custom type document, but he can create a cm:content document.
I need a more simply solution, I need admin to manage these permisions for groups, even if we define them in a programatic way.

Also I want to know if it is any posibility to rafinate the admin permisions ? Can be defined an admin just for groups, an admin just for users, an admin for documents ????