fixed group management in wiki

This commit is contained in:
skodak 2006-09-12 21:07:54 +00:00
parent 3fde1a3d2f
commit 33e7885ee0
3 changed files with 3 additions and 16 deletions

View file

@ -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) {