Index: openacs-4/packages/dotlrn-homework/www/file-move.tcl =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/dotlrn-homework/www/file-move.tcl,v diff -u -r1.2 -r1.3 --- openacs-4/packages/dotlrn-homework/www/file-move.tcl 30 Oct 2003 12:21:44 -0000 1.2 +++ openacs-4/packages/dotlrn-homework/www/file-move.tcl 27 Oct 2014 16:41:21 -0000 1.3 @@ -10,7 +10,7 @@ name:notnull } -validate { valid_file -requires {file_id} { - if ![fs_file_p $file_id] { + if {![fs_file_p $file_id]} { ad_complain "[_ dotlrn-homework.lt_specified_file]" } } @@ -23,7 +23,7 @@ # check they have write permission on the file (is this really the # right permission?) -ad_require_permission $file_id write +permission::require_permission -object_id $file_id -privilege write set context_bar "[_ dotlrn-homework.Move]" set return_url "[ad_conn url]?[ad_conn query]"