MDL-52993 wiki: Fix wiki_user_can_edit for collab and separate groups
This commit is contained in:
committed by
Eloy Lafuente (stronk7)
parent
60a26ddf42
commit
5d14c00774
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user