Merged some changes

This commit is contained in:
moodler
2004-08-24 07:03:06 +00:00
parent e69ef14bf2
commit eb474b29a3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -775,7 +775,7 @@ function wiki_can_edit_entry(&$wiki_entry, &$wiki, &$user, &$course) {
/// Editing teacher's and admins can edit all wikis, non-editing teachers can edit wikis in their groups,
/// or all wikis if group mode is 'no groups' or they don't belong to a group.
if (isadmin() or isteacheredit($course->id, $user->id) or
if (isadmin($user->id) or isteacheredit($course->id, $user->id) or
((!$groupmode or $mygroupid == 0) and isteacher($course->id, $user->id))) {
$can_edit = true;
}
+1 -1
View File
@@ -338,4 +338,4 @@
/// Finish the page
print_footer($course);
?>
?>