How to Define Permissions on Custom Content types?
I am using Alfresco 5.2.0 and have a custom content model deployed in it.
I want to define permissions to access Custom Content type for specific groups. (groups created by admin with Group Manager in Admin Tools). By this a group can have read, Create or View permission on specific Custom Content Type. How can I accomplish this ?
Re: How to Define Permissions on Custom Content types?
Maybe this question have more elegant answer, but I'd try to solve this by custom folder rule. The easy way to make this would be:
write your .js script, which will be:
check type of created node (JS API has function .getTypeShort() for this);
if type = your custom type:
disable inheritance .setInheritsPermissions(false); to avoid conflits besides your custom permissions and default Alfresco permissions. Maybe you have to disable permissions for some default .removePermission();
set custom permissions by function .setPermission(); to your custom groups;
drop it in /companyhome/Data Dictionary/Scripts
go to space (folder) there will be document of this type created;
click "manage rules";
Perform Action: execute script -> pick your script from the list