|
@@ 3867-3868 (lines=2) @@
|
| 3864 |
|
} |
| 3865 |
|
|
| 3866 |
|
// If this is their old primary, can we change it? |
| 3867 |
|
if ($row['id_group'] == $old_profile['id_group'] && ($row['group_type'] > 1 || $context['can_manage_membergroups']) && $canChangePrimary !== false) |
| 3868 |
|
$canChangePrimary = 1; |
| 3869 |
|
|
| 3870 |
|
// If we are not doing a force primary move, don't do it automatically if current primary is not 0. |
| 3871 |
|
if ($changeType != 'primary' && $old_profile['id_group'] != 0) |
|
@@ 3875-3876 (lines=2) @@
|
| 3872 |
|
$canChangePrimary = false; |
| 3873 |
|
|
| 3874 |
|
// If this is the one we are acting on, can we even act? |
| 3875 |
|
if ((!$context['can_manage_protected'] && $row['group_type'] == 1) || (!$context['can_manage_membergroups'] && $row['group_type'] == 0)) |
| 3876 |
|
$canChangePrimary = false; |
| 3877 |
|
} |
| 3878 |
|
$smcFunc['db_free_result']($request); |
| 3879 |
|
|