cancel
Showing results for 
Search instead for 
Did you mean: 

ROLE for users in permissiondefinition.xml

camachompi
Champ in-the-making
Champ in-the-making
I created several user roles, but one of the roles we donot set.

I have a user role that you can view, create and edit documents but can not elimminar documents even their own (OWNER).
I've managed to create a role without the option to delete but wont let me move the documents to other folders.

that is what I want is a role you see, create, edit, move documents but can not delete or a document.
1 REPLY 1

midoscofield
Champ in-the-making
Champ in-the-making
Hi,
For information the action move-to need "delete" permission ,and your user role don't have this permission so it is normal that users cannot move documents.
you should edit the file <strong>share-documentlibrary-config.xml </strong>

<!– Move to –>
         <action id="document-move-to" type="javascript" label="actions.document.move-to">
            <param name="function">onActionMoveTo</param>
            <permissions>
               <permission allow="true">Delete</permission>
            </permissions>
            <evaluator>evaluator.doclib.action.editableByCurrentUser</evaluator>
         </action>

         <!– Delete –>
         <action id="document-delete" type="javascript" label="actions.document.delete">
            <param name="function">onActionDelete</param>
            <permissions>
               <permission allow="true">Delete</permission>
            </permissions>
            <evaluator>evaluator.doclib.action.editableByCurrentUser</evaluator>
            <evaluator>evaluator.doclib.action.isNotPartOfHybridWorklfow</evaluator>
            <evaluator>evaluator.doclib.action.isDeletable</evaluator>
         </action>