12-15-2022 09:03 AM
Hi Community:
I want to disable the top right corner Download button, and we can use code 'model.showDownload = "false"' to do it.
But how to add a judging condition that if user who only have read permission, then disable it?
Please refer the JS file as below, thank!
node-header.get.js
<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js">
var .......
if ( Here: If users only have Read permission, then hide Download button, how to creat the judging condition? ){
model.showDownload = "false";
}
12-15-2022 07:59 PM
Hi Team;
Could you give me some advise to limit download?
Any help will be greatly appreciated. My code is as follows:
node-header.get.js
<import resource="classpath:/alfresco/templates/org/alfresco/import/alfresco-util.js">
var .......
if ( Here: If users only have Read permission, then hide Download button, how to creat the judging condition? ){
model.showDownload = "false";
}
Explore our Alfresco products with the links below. Use labels to filter content by product module.