mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
merged fix for MDL-7066, proper capability check for forum attachments
This commit is contained in:
parent
5f6fc25b43
commit
6ccb764f32
@ -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">
|
||||
|
Loading…
x
Reference in New Issue
Block a user