From: Tessa A. <tes...@br...> - 2007-09-29 05:18:11
|
Dear Ben, I would look at overriding the index_html method. Good luck. bk1 wrote: > I have a File-based type in which I have overridden the download() method. > It checks that the value of an attribute matches the user's Group - if not > then the download method returns nothing. > > This works fine if the URL ends with /download; > > -- http://this.site.com/myFile/download ----- (returns nothing) > > but it does not work if the URL points directly to the item. > > -- http://this.site.com/myFile ----- offers the usual file popup > (open/save/cancel) to the user > > How can I prevent the item being downloaded when the URL points directly to > the shortname of the item? > Thanks, Ben > -- Tessa Alexander Web Developer Internet Development Group Institute for Learning and Research Technology http://www.ilrt.bris.ac.uk/id/ |