Index: openacs-4/packages/general-comments/www/file-edit.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/general-comments/www/file-edit.tcl,v diff -u -r1.4 -r1.5 --- openacs-4/packages/general-comments/www/file-edit.tcl 7 Nov 2002 08:32:49 -0000 1.4 +++ openacs-4/packages/general-comments/www/file-edit.tcl 27 Oct 2014 16:41:43 -0000 1.5 @@ -11,8 +11,8 @@ @creation-date 2000-10-12 @cvs-id $Id$ } { - attach_id:integer,notnull - parent_id:integer,notnull + attach_id:naturalnum,notnull + parent_id:naturalnum,notnull { return_url {} } } -properties { page_title:onevalue @@ -24,7 +24,7 @@ } # check to see if the user can edit this comment -ad_require_permission $attach_id write +permission::require_permission -object_id $attach_id -privilege write # get the values from the database db_1row get_comment {