MDL-37245 Blog: Bloglevel is used for checking if blog is enabled
This commit is contained in:
committed by
Damyon Wiese
parent
b9c29ff6d3
commit
f9e27e8323
+1
-1
@@ -1048,7 +1048,7 @@ function blog_comment_validate($comment_param) {
|
||||
global $CFG, $DB, $USER;
|
||||
|
||||
// Check if blogs are enabled user can comment.
|
||||
if (empty($CFG->enableblogs) || empty($CFG->blogusecomments)) {
|
||||
if (empty($CFG->bloglevel) || empty($CFG->blogusecomments)) {
|
||||
throw new comment_exception('nopermissiontocomment');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user