blob: 206673de35accc678dac7df6e88911e96261269f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
$group_guid = get_input('group');
$othergroup_guid = get_input('othergroup');
$group = get_entity($group_guid);
$othergroup = get_entity($othergroup_guid);
if ($group instanceof ElggGroup && $group->canEdit()) {
if ($othergroup instanceof ElggGroup && $othergroup->canEdit() && $othergroup->container_guid == $group_guid) {
$othergroup->container_guid = $other_group->owner_guid;
$othergroup->save();
}
}
forward(REFERER);
|