cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable 'assign workflow' option for users

neogenesy
Champ in-the-making
Champ in-the-making
Hi everyone;

i'm looking for a way to disable the "assign workflow" option for the normal users of my share's 3.4 istance.
i already tried to watch files like "permissionDefinition.xml" "sitePermissionDefinition.xml" documentlist.get.html.ftl and many other but i've still not found any solution…
Does someone know how can i do this thing?

Really thanks
3 REPLIES 3

matjazmuhic
Champ on-the-rise
Champ on-the-rise
You mean the "Reassign" button?

In that case my guess would be that you have to probably override this:

/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/workflow/task-edit-header.get.html.ftl

neogenesy
Champ in-the-making
Champ in-the-making
nope Smiley Wink

maybe 'be not been so clear in my post, sorry.
I mean, i've a site where i've uploaded some folder and files .pdf inside the document library.

If i use my Consumer account to surf the document library, and i select a folder the only action that i can do are: Show data and Copy to, but if i select a file pdf, on the list of the action that i can do, appears also Assign Workflow and a simple consumer of the site can assign workflow to other user of the site…

i don't want that this option can be possible for a simple consumer…but just for admin…

I'm looking for the file where alfresco build that list of action and where i've to add the condition <#if user.isAdmin></#if>

i don't know if now is a bit more clear my situation anyway thx for the answer Smiley Wink

matjazmuhic
Champ on-the-rise
Champ on-the-rise
Hm. I think then you must override this:
tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/document-details/document-actions.get.html.ftl

Check that id is "onActionAssignWorkflow" and user role is correct and then show/hide it.

You can check other actions here:
tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/components/document-details/document-actions.get.config.xml


I think that is it… Smiley Happy  If not correct me again.. Smiley Very Happy