Skip to content

Commit

Permalink
MDL-14952 - roles: 'moodle/legacy:guest' was preventing admins to post
Browse files Browse the repository at this point in the history
new discussions in fron page if $CFG->defaultfrontpageroleid = guest.
  • Loading branch information
stronk7 committed Nov 1, 2008
1 parent fc89ab2 commit 2fe9a6d
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -4319,11 +4319,6 @@ function forum_user_can_post_discussion($forum, $currentgroup=null, $unused=-1,
$context = get_context_instance(CONTEXT_MODULE, $cm->id);
}

// normal users with temporary guest access can not add discussions
if (has_capability('moodle/legacy:guest', $context, $USER->id, false)) {
return false;
}

if ($currentgroup === null) {
$currentgroup = groups_get_activity_group($cm);
}
Expand Down

0 comments on commit 2fe9a6d

Please sign in to comment.