From 26d038607aa850d48c0fa519dd70a1fede8d8af2 Mon Sep 17 00:00:00 2001 From: skodak Date: Mon, 2 Oct 2006 21:15:48 +0000 Subject: [PATCH] moodle/blog:view usage fixed in blog --- blog/lib.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/blog/lib.php b/blog/lib.php index 29f2e7d7cec..2bb294badbf 100755 --- a/blog/lib.php +++ b/blog/lib.php @@ -304,7 +304,7 @@ /** * Checks to see if a user can view the blogs of another user. - * He can do so, if he has the moodle/blog:readentry capability. In the + * He can do so, if he has the moodle/blog:view capability. In the * case of spg group course, the user also needs to be in the same group. */ function blog_user_can_view_user_post($targetuserid, $blogEntry=null) { @@ -314,7 +314,7 @@ $context = get_context_instance(CONTEXT_SYSTEM, SITEID); - if (!has_capability('moodle/blog:readentry', $context)) { + if (!has_capability('moodle/blog:view', $context)) { return false; }