merged fix for MDL-7066, proper capability check for forum attachments

This commit is contained in:
toyomoyo 2006-10-18 08:01:15 +00:00
parent 5f6fc25b43
commit 6ccb764f32

View 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">