Index: openacs-4/packages/general-comments/www/file-download.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/www/file-download.tcl,v diff -u -r1.3 -r1.4 --- openacs-4/packages/general-comments/www/file-download.tcl 31 Oct 2001 20:42:07 -0000 1.3 +++ openacs-4/packages/general-comments/www/file-download.tcl 27 Oct 2014 16:41:43 -0000 1.4 @@ -10,10 +10,10 @@ @creation-date 2000-10-12 @cvs-id $Id$ } { - item_id:notnull + item_id:naturalnum,notnull } # check for permissions -ad_require_permission $item_id read +permission::require_permission -object_id $item_id -privilege read cr_write_content -item_id $item_id