Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Do not offer impersonating of disabled users
Fixes #24719
  • Loading branch information
atrol authored and vboctor committed Sep 2, 2018
1 parent ef32cb9 commit 65ae8fa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions core/authentication_api.php
Expand Up @@ -551,6 +551,10 @@ function auth_can_impersonate( $p_user_id ) {
return false;
}

if( !user_is_enabled( $p_user_id ) ) {
return false;
}

return true;
}

Expand Down

0 comments on commit 65ae8fa

Please sign in to comment.