cancel
Showing results for 
Search instead for 
Did you mean: 

New role that allows checkout, but not checkin of content

afrankel
Champ in-the-making
Champ in-the-making
Hello,

I created a space called "SSS", and I would like all users in group_SSS to be able to create new content, as well as be able to check out content created by other users.  Only the owner of an object should be able to edit an object, and to checkin other users modifications.

In order to do that, I modified the file permissionDefinitions.xml  to add new role ModifyOwn :

   <permissionSet type="cm:cmobject" expose="selected">
    …
      <permissionGroup name="ModifyOwn" allowFullControl="false" expose="true" >
         <includePermissionGroup permissionGroup="Contributor" type="cm:cmobject" />
         <includePermissionGroup type="cm:lockable" permissionGroup="CheckOut"/>
      </permissionGroup>

   <permissionSet type="cm:content" expose="selected">
    …
      <permissionGroup name="ModifyOwn" extends="true" expose="true"/>

    <permissionSet type="cm:folder" expose="selected">
    …
      <permissionGroup name="ModifyOwn" extends="true" expose="true"/>

As you can see, I based my new role ModifyOwn on Contributor, plus I added the CheckOut permissions.
I restarted alfresco.  As admin,  I added to group_SSS the role $$ModifyOwn$$ to space SSS.

However, a user in group_SSS seems to behave like a Contributor, ie it can modify its own objects but can't check out other user's object. 

Could you please let me know what did I do wrong, or is there another way I should do this?

Thank You,

Andras

I run Alfresco-Labs-3c on Linux.
1 REPLY 1

afrankel
Champ in-the-making
Champ in-the-making
I thought of modifying web-client-config-actions.xml :


         <!– Checkout document –>
         <action id="checkout_doc">
    <!– I ADDED THIS: –>
            <permissions>
               <permission allow="true">Checkout</permission>
            </permissions>

            <evaluator>org.alfresco.web.action.evaluator.CheckoutDocEvaluator</evaluator>
            <label-id>checkout</label-id>
            <image>/images/icons/CheckOut_icon.gif</image>
            <action-listener>#{CCCheckoutFileDialog.setupContentAction}</action-listener>
            <action>dialog:checkoutFile</action>
            <params>
               <param name="id">#{actionContext.id}</param>
            </params>
         </action>

I also uncommented <action idref="checkout_doc" /> within <action-group id="document_browse">.  Still, no effect. 
The checkout menu action appears only for the document the user himself has created.

Does somebody have experience creating permission groups and playing with menu actions?

Thanks,

Andras