Commit d3261e33 authored by Ghada El-Zoghbi's avatar Ghada El-Zoghbi
Browse files

bug#1607231: Remove check if user is an admin of the institution when updating a group.


Change-Id: I2eada9b65cc174900cdb6584c13905410c91c673
parent 8ea8d616
......@@ -574,14 +574,6 @@ function group_update($new, $create=false) {
throw new NotFoundException("group_update: group not found");
if (!empty($old->institution) && $old->institution != 'mahara') {
// Api-controlled group; check permissions.
global $USER;
if (!$USER->can_edit_institution($old->institution)) {
throw new AccessDeniedException("group_update: cannot update a group in this institution");
if (
(isset($new->submittableto) && empty($new->submittableto)) ||
(!isset($new->submittableto) && empty($old->submittableto))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment