Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
moodle/blog:view usage fixed in blog
  • Loading branch information
skodak committed Oct 2, 2006
1 parent 11c467d commit 26d0386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blog/lib.php
Expand Up @@ -304,7 +304,7 @@ function blog_user_can_edit_post($blogEntry, $context) {

/**
* 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) {
Expand All @@ -314,7 +314,7 @@ 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;
}

Expand Down

0 comments on commit 26d0386

Please sign in to comment.