2 Replies Latest reply on Sep 12, 2012 5:15 AM by Deepikaa Nagesh

    Disable download option in DAM asset editor .

    Deepikaa Nagesh

      Hi,

       

      How to disable download option in DAM asset editor for  a particular user role?

       

      Thanks,

      Deepikaa

        • 1. Re: Disable download option in DAM asset editor .
          hypnotec Adobe Employee

          a strange requirement, as the user needs to have read-access to the asset in order to work with it in the asset editor.

           

          basically, you can't disable the download function. the function is hard-coded in /libs/dam/widgets/source/widgets/AssetEditor.js:

           

                  items.push(new CQ.Static({

                      "colspan": 2,

                      "small": true,

                      "right": true,

                      "cls": "cq-asseteditor-download",

                      "html": '<a href="' + CQ.HTTP.externalize(CQ.shared.XSS.getXSSValue(this.pathEncoded)) + '" target="_blank" title="' + CQ.shared.XSS.getXSSValue(this.path) + '">' + CQ.I18n.getMessage("Download") + '</a>'

                  }));

           

          you can try to apply a custom CSS that hides the DIV representing the download function:

           

          <div id="ext-comp-1509" class=" cq-asseteditor-download cq-static cq-static-small cq-static-right"><a href="/content/dam/geometrixx-media/banner.png" target="_blank" title="/content/dam/geometrixx-media/banner.png">Download</a></div>

          1 person found this helpful
          • 2. Re: Disable download option in DAM asset editor .
            Deepikaa Nagesh Level 1

            Thanks a lot.I shall try this.