Skip to content

Commit

Permalink
Fix the selection of the Nobody user.
Browse files Browse the repository at this point in the history
Strictly speaking only the first line needed to be changed, but I figure
for consistency it is clearer if we just use $principal.  ($user and
$principal are pointing to the same object for the second line.)
  • Loading branch information
puck committed Jul 24, 2022
1 parent ec3d2e0 commit dbcd11e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/RT/Extension/Assets/Import/CSV.pm
Original file line number Diff line number Diff line change
Expand Up @@ -405,9 +405,9 @@ sub process_roles_field {
# Is it safe to assume the Nobody account always starts with
# Nobody?
if ($name =~ /^Nobody/) {
$user = RT->Nobody;
$principal = RT->Nobody;
} else {
$user->Load( $name );
$principal->Load( $name );
}
}

Expand Down

0 comments on commit dbcd11e

Please sign in to comment.