08-03-2017 09:26 AM
Is there a way to limit the available document actions (shown in document-browse or document-details view) based on user role or access rights?
Regards,
Zsolt Putnoky
08-03-2017 06:45 PM
Yes, and it is already being done by default. If you read Jeff Potts' tutorial on custom actions, you'll read about the basic configuration to restrict actions based on permissions.
08-04-2017 02:54 AM
Hi Axel,
I know it is done by default, tested it yesterday. Here is what I need to be able to do. A folder manager or contributor should be able to change properties and run some custom actions we developed, the users with read only or collaborator rights should be able to read the documents and do nothing else.
I will check the link later today, hope I will be able to use it.
Regards,
Zsolt Putnoky
08-04-2017 11:12 AM
Hi Axel,
Read the doc you proposed and got few questions. I would like to remove almost all the OOTB document actions regardless the user assinged role in the site or in the folder. To do this, do I need to modify the share-config-custom.xml by creating an entry for each action to be removed for each role type? It is a copy/paste operation once the initial set is done, but I am wondering whether a more simple solution exist?
Regards,
Zsolt Putnoky
08-04-2017 01:44 PM
https://github.com/keensoft/alfresco-simplify-share
08-07-2017 02:44 AM
Hi Angel,
Thanks alot, will check it out today!
Regards,
Zsolt Putnoky
08-07-2017 04:53 AM
Hi Angel,
A question, am I able to select which action is visible and which is not?
08-07-2017 04:55 AM
You can modify/tune the project and compile it again:
ACTIONS - alfresco-simplify-share/removed-actions.xml at master · keensoft/alfresco-simplify-share · GitHub
DOCUMENT ELEMENTS - alfresco-simplify-share/removed-elements.xml at master · keensoft/alfresco-simplify-share · GitHub
LIBRARY ELEMENTS - alfresco-simplify-share/simplify-share/src/main/amp/config/alfresco/web-extension/site-webscripts/es...
08-07-2017 05:29 AM
now I just need to learn how to modify/tune/compile your code
08-08-2017 10:52 AM
Hi Angel,
Had a look on the code and I am not sure this would do what I am looking for. Here is the issue we would like to fix in our proof-of-concept implementation: using the default OOTB document actions, we would like to create a custom, corporate wide document action group for each user role. Then check the role assigned to the logged in user for a given site and show only those actions which are in the corresponding group.
I tried to create a chained evaluator, which removed the action, but for all users, searched the forum but found nothing.
Do you have any ideas how to solve this problem?
Regards,
Zsolt Putnoky
Explore our Alfresco products with the links below. Use labels to filter content by product module.