|
@@ 3225-3228 (lines=4) @@
|
| 3222 |
|
// If we are changing group status, update permission cache as necessary. |
| 3223 |
|
if ($value != $old_profile['id_group'] || isset($profile_vars['additional_groups'])) |
| 3224 |
|
{ |
| 3225 |
|
if ($context['user']['is_owner']) |
| 3226 |
|
$_SESSION['mc']['time'] = 0; |
| 3227 |
|
else |
| 3228 |
|
updateSettings(array('settings_updated' => time())); |
| 3229 |
|
} |
| 3230 |
|
|
| 3231 |
|
// Announce to any hooks that we have changed groups, but don't allow them to change it. |
|
@@ 4100-4103 (lines=4) @@
|
| 4097 |
|
$addGroups = implode(',', array_flip($addGroups)); |
| 4098 |
|
|
| 4099 |
|
// Ensure that we don't cache permissions if the group is changing. |
| 4100 |
|
if ($context['user']['is_owner']) |
| 4101 |
|
$_SESSION['mc']['time'] = 0; |
| 4102 |
|
else |
| 4103 |
|
updateSettings(array('settings_updated' => time())); |
| 4104 |
|
|
| 4105 |
|
updateMemberData($memID, array('id_group' => $newPrimary, 'additional_groups' => $addGroups)); |
| 4106 |
|
|