Permalink
Browse files

MDL-37245 Blog: Bloglevel is used for checking if blog is enabled

  • Loading branch information...
Rajesh Taneja authored and damyon committed May 8, 2013
1 parent b9c29ff commit f9e27e8323f31186820d25252ec0d4c6cd65dafc
Showing with 1 addition and 1 deletion.
  1. +1 −1 blog/lib.php
View
@@ -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');
}

0 comments on commit f9e27e8

Please sign in to comment.