|
@@ 3141-3144 (lines=4) @@
|
| 3138 |
|
// If we are changing group status, update permission cache as necessary. |
| 3139 |
|
if ($value != $old_profile['id_group'] || isset($profile_vars['additional_groups'])) |
| 3140 |
|
{ |
| 3141 |
|
if ($context['user']['is_owner']) |
| 3142 |
|
$_SESSION['mc']['time'] = 0; |
| 3143 |
|
else |
| 3144 |
|
updateSettings(array('settings_updated' => time())); |
| 3145 |
|
} |
| 3146 |
|
|
| 3147 |
|
// Announce to any hooks that we have changed groups, but don't allow them to change it. |
|
@@ 4018-4021 (lines=4) @@
|
| 4015 |
|
$addGroups = implode(',', array_flip($addGroups)); |
| 4016 |
|
|
| 4017 |
|
// Ensure that we don't cache permissions if the group is changing. |
| 4018 |
|
if ($context['user']['is_owner']) |
| 4019 |
|
$_SESSION['mc']['time'] = 0; |
| 4020 |
|
else |
| 4021 |
|
updateSettings(array('settings_updated' => time())); |
| 4022 |
|
|
| 4023 |
|
updateMemberData($memID, array('id_group' => $newPrimary, 'additional_groups' => $addGroups)); |
| 4024 |
|
|