|
@@ 3974-3975 (lines=2) @@
|
| 3971 |
|
} |
| 3972 |
|
|
| 3973 |
|
// If this is their old primary, can we change it? |
| 3974 |
|
if ($row['id_group'] == $old_profile['id_group'] && ($row['group_type'] > 1 || $context['can_manage_membergroups']) && $canChangePrimary !== false) |
| 3975 |
|
$canChangePrimary = 1; |
| 3976 |
|
|
| 3977 |
|
// If we are not doing a force primary move, don't do it automatically if current primary is not 0. |
| 3978 |
|
if ($changeType != 'primary' && $old_profile['id_group'] != 0) |
|
@@ 3982-3983 (lines=2) @@
|
| 3979 |
|
$canChangePrimary = false; |
| 3980 |
|
|
| 3981 |
|
// If this is the one we are acting on, can we even act? |
| 3982 |
|
if ((!$context['can_manage_protected'] && $row['group_type'] == 1) || (!$context['can_manage_membergroups'] && $row['group_type'] == 0)) |
| 3983 |
|
$canChangePrimary = false; |
| 3984 |
|
} |
| 3985 |
|
$smcFunc['db_free_result']($request); |
| 3986 |
|
|