]> git.mjollnir.org Git - moodle.git/commitdiff
merged fix for MDL-7066, proper capability check for forum attachments
authortoyomoyo <toyomoyo>
Wed, 18 Oct 2006 08:01:15 +0000 (08:01 +0000)
committertoyomoyo <toyomoyo>
Wed, 18 Oct 2006 08:01:15 +0000 (08:01 +0000)
mod/forum/post.html

index 62d065d3953b8683592f22ac270de5eda389b4ce..8a5e6872908eaf81e32e92954fe90297dbdef1a0 100644 (file)
@@ -95,7 +95,7 @@ trusttext_prepare_edit($post->message, $post->format, $usehtmleditor, $modcontex
 </tr>
 
 
-<?php if ($forum->maxbytes != 1) {  //  1 = No attachments at all
+<?php if ($forum->maxbytes != 1 && has_capability('mod/forum:createattachment', $modcontext))  {  //  1 = No attachments at all
 ?>
 
 <tr valign="top">