mirror of
https://github.com/moodle/moodle.git
synced 2025-08-09 19:06:41 +02:00
MDL-27037, wiki does not support visiblegroups functionality
This commit is contained in:
parent
d48dae7507
commit
dc0cabb488
3 changed files with 28 additions and 1 deletions
|
@ -899,7 +899,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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue