Commit bb05505e authored by dani's avatar dani Committed by Eloy Lafuente (stronk7)

MDL-52993 wiki: Fix wiki_user_can_edit for collab and separate groups

parent 821296dc
......@@ -908,7 +908,7 @@ function wiki_user_can_edit($subwiki) {
// There is one wiki per group.
//
// Only members of subwiki group could edit that wiki
if ($subwiki->groupid == groups_get_activity_group($cm)) {
if (groups_is_member($subwiki->groupid)) {
// Only edit capability needed
return has_capability('mod/wiki:editpage', $context);
} else { // User is not part of that group
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment