From 6ccb764f32508cf0adbdac1ae9752a9b7020074b Mon Sep 17 00:00:00 2001 From: toyomoyo Date: Wed, 18 Oct 2006 08:01:15 +0000 Subject: [PATCH] merged fix for MDL-7066, proper capability check for forum attachments --- mod/forum/post.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ?> -- 2.39.5