Skip to content

Commit

Permalink
community MDL-23170 fix regression that didn't display community bloc…
Browse files Browse the repository at this point in the history
…k anymore
  • Loading branch information
mouneyrac committed Jul 9, 2010
1 parent cc83f94 commit 9358f71
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blocks/community/block_community.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ function user_can_addto($page) {
if (!has_capability('moodle/community:add', get_context_instance(CONTEXT_SYSTEM))) { // Should be page context?
return false;
}
parent::user_can_addto($page);

return parent::user_can_addto($page);
}

function user_can_edit() {
Expand Down

0 comments on commit 9358f71

Please sign in to comment.