|
@@ 3116-3119 (lines=4) @@
|
| 3113 |
|
// If we are changing group status, update permission cache as necessary. |
| 3114 |
|
if ($value != $old_profile['id_group'] || isset($profile_vars['additional_groups'])) |
| 3115 |
|
{ |
| 3116 |
|
if ($context['user']['is_owner']) |
| 3117 |
|
$_SESSION['mc']['time'] = 0; |
| 3118 |
|
else |
| 3119 |
|
updateSettings(array('settings_updated' => time())); |
| 3120 |
|
} |
| 3121 |
|
|
| 3122 |
|
// Announce to any hooks that we have changed groups, but don't allow them to change it. |
|
@@ 3993-3996 (lines=4) @@
|
| 3990 |
|
$addGroups = implode(',', array_flip($addGroups)); |
| 3991 |
|
|
| 3992 |
|
// Ensure that we don't cache permissions if the group is changing. |
| 3993 |
|
if ($context['user']['is_owner']) |
| 3994 |
|
$_SESSION['mc']['time'] = 0; |
| 3995 |
|
else |
| 3996 |
|
updateSettings(array('settings_updated' => time())); |
| 3997 |
|
|
| 3998 |
|
updateMemberData($memID, array('id_group' => $newPrimary, 'additional_groups' => $addGroups)); |
| 3999 |
|
|