Skip to content

Commit

Permalink
Consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeTowers committed Aug 24, 2021
1 parent d9c482e commit d13d58c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -534,7 +534,7 @@ protected function generatePassword()
*/
public function canBeImpersonated($impersonator = false)
{
$user = BackendAuth::user();
$user = BackendAuth::getUser();
if (!$user || !$user->hasAccess('winter.users.impersonate_user')) {
return false;
}
Expand Down

0 comments on commit d13d58c

Please sign in to comment.