cancel
Showing results for 
Search instead for 
Did you mean: 

Permission to Create Content

joaotpd
Champ on-the-rise
Champ on-the-rise
Hi! Smiley Happy
I'm using alfresco-community-tomcat-2.9.0B in linux.
I have created a new Content Model with new Types of Content. I also have created new Users and Groups.
Now, i want that only certain User Groups could create certain Type of Content.

Example:
If there are two User Groups: "group01" and "group02". If two Types of Content exist: "my:type01" and "my:type02"
I want that only "group01" could create content of the type "my:type01".
Is this possible??

Some of my code:

myModel.xml


<namespaces>
   <namespace uri="myModel" prefix="my"/>
</namespaces>

<types>
   <type name="my:type01">
   …
   </type>

   <type name="meu:type02">
   …
   </type>
</types>


web-client-config-custom.xml


<config evaluator="string-compare" condition="Content Wizards">
   <content-types>
      <type name="my:type01"/>
      <type name="my:type02" />
   </content-types>
</config>


Thanks in advance!
Sorry about my english…

João Duarte
2 REPLIES 2

monitloth
Champ on-the-rise
Champ on-the-rise
I am not sure, but check for evaluators.

monitloth
Champ on-the-rise
Champ on-the-rise
Ok, you make your own Evaluator and check if the running user is in the necessary group, if yes, you return a true.