Skip to content

Commit

Permalink
Changed UserList call to UserLookup in Group.pm (performance fix).
Browse files Browse the repository at this point in the history
  • Loading branch information
jepf committed Oct 30, 2023
1 parent 21b2371 commit 2a86105
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Kernel/System/Group.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1913,12 +1913,12 @@ sub PermissionUserRoleGet {
return;
}

# get valid user list
my %UserList = $Kernel::OM->Get('Kernel::System::User')->UserList(
Type => 'Short',
my $UserLogin = $Kernel::OM->Get('Kernel::System::User')->UserLookup(
UserID => $Param{UserID},
Silent => 1,
);

return if !$UserList{ $Param{UserID} };
return if !$UserLogin;

# get permission data
my %Permissions = $Self->_DBRoleUserGet(
Expand Down

0 comments on commit 2a86105

Please sign in to comment.