As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
Hi,
I want to hide version download link for consumers. Please let me know what needs to be done in order to hide the link.
Could you provide a more detailed description of what you're trying to achieve? There are lots of places/pages in which a download appears? You refer to "version" download - so I would assume that you want to hide a button or buttons on the document details page in the "Version History" section - is this correct?
HI Dave,
Yes, I want to hide the download link available in the version history
section. I have to hide the link for users with consumer role. I am trying
to override the document-versions.js file's function
"*getDocumentVersionMarkup:
function DocumentVersions_getDocumentVersionMarkup(doc)*." I am calling the
membership webscript to check the role of the user "*var json =
remote.call("/api/sites/" + page.url.templateArgs.site + "/memberships/" +
encodeURIComponent(user.name <http://user.name>));*" and hide the link if
the user role is SiteConsumer.
Is this correct ??
Thanks
Hiten Rastogi
Sr. Software Engineer
Mobile: +91 9899586608
Email: hiten.rastogi@eisenvault.com <vipul.swarup@eisenvault.com>
Yes, I would say that this looks to be the correct approach. Is it not working?
I can see an error ""Uncaught ReferenceError: remote is not defined ."
Can you please let me know where I am going wrong ?