if ($row[0] != $_user['user_id'] && !$user_is_anonymous) {
// you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore.
// actions for assigning sessions, courses or users
if (api_is_session_admin()) {
@ -638,6 +629,18 @@ function modify_filter($user_id,$url_params,$row) {
}
}
if (api_is_platform_admin()) {
if ($delete_user_available) {
if ($row[0] != $_user['user_id'] && !$user_is_anonymous) {
// you cannot lock yourself out otherwise you could disable all the accounts including your own => everybody is locked out and nobody can change it anymore.