mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
fixed group management in wiki
This commit is contained in:
parent
3fde1a3d2f
commit
33e7885ee0
3 changed files with 3 additions and 16 deletions
|
@ -31,7 +31,8 @@ function wiki_is_teacher($wiki, $userid=NULL) {
|
|||
}
|
||||
|
||||
function wiki_is_teacheredit($wiki, $userid=NULL) {
|
||||
return has_capability('mod/wiki:manageallgroups', wiki_context($wiki), $userid);
|
||||
return has_capability('mod/wiki:manage', wiki_context($wiki), $userid)
|
||||
and has_capability('moodle/site:accessallgroups', wiki_context($wiki), $userid);
|
||||
}
|
||||
|
||||
function wiki_is_student($wiki, $userid=NULL) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue