From 8493ff6fd589c3553eecb7e6082685fce060bc5d Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Tue, 29 Aug 2006 06:02:29 +0000 Subject: [PATCH] added acapability --- mod/assignment/type/upload/assignment.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod/assignment/type/upload/assignment.class.php b/mod/assignment/type/upload/assignment.class.php index 6b776ebed3..729e038efa 100644 --- a/mod/assignment/type/upload/assignment.class.php +++ b/mod/assignment/type/upload/assignment.class.php @@ -1032,7 +1032,7 @@ class assignment_upload extends assignment_base { } else { $ffurl = "$CFG->wwwroot/file.php?file=/$filearea/$file"; } - if (isteacher($this->course->id)) { + if (has_capability('mod/assignment:grade', get_context_instance(CONTEXT_MODULE, $this->course->id))) { $output .= ''.$icon.''. ''.$file.' ['.$filesize.']
'; } else { -- 2.39.5