cancel
Showing results for 
Search instead for 
Did you mean: 

Contributor create content but no space, how i can do that ?

ribz33
Champ on-the-rise
Champ on-the-rise
Hi,

i had done some test in permissionsdefinition.xmland in browser.jsp but i never success to do what i want…

I want configure contributor group permissions to be able to create content in UI but i dont want that he is able to create new space.

I have try lot of things and i never success, if someone can help that can be nice Smiley Happy
3 REPLIES 3

ribz33
Champ on-the-rise
Champ on-the-rise
Ok, i have try something. In my view that should work but that didnt work. I don't understand why.

I recall that my purpose is that a contributor can only see "create content" and dont see create folder in web client action menu.

Ok i show what i had done :
in permissionDefinitions.xml

      <!– A collaborator can do anything that an editor and a contributor can do –>
      <permissionGroup name="Collaborator" allowFullControl="false" expose="true">
      <includePermissionGroup permissionGroup="AddChildren" type="sys:base"/>
         <includePermissionGroup permissionGroup="Editor" type="cm:cmobject" />
         <includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" />
      </permissionGroup>
     
      <!– A contributor can create content and then they have full permission on what –>
      <!– they have created - via the permissions assigned to the owner.              –>
      <permissionGroup name="Contributor" allowFullControl="false" expose="true" >
          <!– Contributor is a consumer who can add content, and then can modify via the –>
          <!– owner permissions.                                                      –>
          <includePermissionGroup permissionGroup="Consumer" type="cm:cmobject"/>  
          <!– Check out requires write permissions so this will not apply to all      –>
          <!– documents.                                                              –>
          <includePermissionGroup type="cm:lockable" permissionGroup="CheckOut"/>
      </permissionGroup>
i had moved "Addchildren" to collaborator
after i had created this in content part :

  <permissionSet type="cm:content" expose="selected"> 
     
      <permissionGroup name="AddContent" expose="true" allowFullControl="false" />  
  
    <permission name="CreateContent" expose="false">
         <grantedToGroup permissionGroup="AddChildren"/>
         <grantedToGroup permissionGroup="AddContent"/>        

    </permission>

      <permissionGroup name="Contributor" extends="true" expose="true">
                <includePermissionGroup permissionGroup="AddContent" type="cm:content"/>    
      </permissionGroup> 

After in browse.jsp in web client i had done that for menu :


<td style="padding-left:4px" align=right>
<%– Quick upload action –%>
<nobr>
<r:permissionEvaluator value="#{NavigationBean.currentNode}" allow="CreateContent" id="eval2">
<a:actionLink value="#{msg.add_content}" image="/images/icons/add.gif" action="addContent" actionListener="#{AddContentWizard.startWizard}" style="white-space:nowrap" id="link3" />
</r:permissionEvaluator>
</nobr>
</td>
<td style="padding-left:4px" width=52>
<%– Create actions menu –%>
<a:menu id="createMenu" itemSpacing="4" label="#{msg.create_options}" image="/images/icons/menu.gif" menuStyleClass="moreActionsMenu" style="white-space:nowrap">
<r:permissionEvaluator value="#{NavigationBean.currentNode}" allow="CreateContent" id="eval3">
<a:actionLink value="#{msg.create_content}" image="/images/icons/new_content.gif" id="link3_1" action="createContent" actionListener="#{CreateContentWizard.startWizard}" />
</r:permissionEvaluator>
<r:permissionEvaluator value="#{NavigationBean.currentNode}" allow="CreateChildren" id="eval1">
<a:actionLink value="#{msg.new_space}" image="/images/icons/create_space.gif" action="createSpace" actionListener="#{NewSpaceDialog.startWizard}" id="link1" />
</r:permissionEvaluator>
<r:permissionEvaluator value="#{NavigationBean.currentNode}" allow="CreateChildren" id="eval6">
<a:actionLink value="#{msg.advanced_space_wizard}" image="/images/icons/create_space.gif" action="createAdvancedSpace" actionListener="#{NewSpaceWizard.startWizard}" id="link9" />
</r:permissionEvaluator>
</a:menu>
</td>
I had changed CreateChildren by CreateContent for content links

And that dont work, i dont undertand what i did bad someone had an idea ?

Thx in advance

andy
Champ on-the-rise
Champ on-the-rise
Hi

Permissions are not conditional on type. Create child applies to creating any type of child. What you want to do is on the list of things to do.

Regards

Andy

mgomarg
Champ in-the-making
Champ in-the-making
Hi,

I have the same problem. I am working nowadays with the  Alfresco Version: Community Network - v2.1.0 (482)
Is there any innovation in the matter?, has it been born in mind for future versions?.

Thx in advance,

María