From: toyomoyo Date: Wed, 18 Oct 2006 08:01:15 +0000 (+0000) Subject: merged fix for MDL-7066, proper capability check for forum attachments X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=6ccb764f32508cf0adbdac1ae9752a9b7020074b;p=moodle.git merged fix for MDL-7066, proper capability check for forum attachments --- diff --git a/mod/forum/post.html b/mod/forum/post.html index 62d065d395..8a5e687290 100644 --- a/mod/forum/post.html +++ b/mod/forum/post.html @@ -95,7 +95,7 @@ trusttext_prepare_edit($post->message, $post->format, $usehtmleditor, $modcontex -maxbytes != 1) { // 1 = No attachments at all +maxbytes != 1 && has_capability('mod/forum:createattachment', $modcontext)) { // 1 = No attachments at all ?>