]> git.mjollnir.org Git - moodle.git/commitdiff
moodle/blog:view usage fixed in blog
authorskodak <skodak>
Mon, 2 Oct 2006 21:15:48 +0000 (21:15 +0000)
committerskodak <skodak>
Mon, 2 Oct 2006 21:15:48 +0000 (21:15 +0000)
blog/lib.php

index 29f2e7d7cece06a65f10bf6626ed86fd09c985f1..2bb294badbfe9c856d5680f52685786ae142725e 100755 (executable)
 
     /**
      * 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) {
         
         $context = get_context_instance(CONTEXT_SYSTEM, SITEID);
         
-        if (!has_capability('moodle/blog:readentry', $context)) {
+        if (!has_capability('moodle/blog:view', $context)) {
             return false;
         }