Skip to content

Commit

Permalink
Issue #3186: Perform ACL evaluation also if lens attribute DF sets dy…
Browse files Browse the repository at this point in the history
…namic content.
  • Loading branch information
stefanhaerter committed Mar 19, 2024
1 parent 2d7f15f commit 0caa8f1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Kernel/System/DynamicField/Driver/Lens.pm
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,10 @@ sub GetFieldState {
DynamicFieldConfig => $DynamicFieldConfig,
Behavior => 'IsACLReducible',
);
my $SetsDynamicContent = $Self->HasBehavior(
DynamicFieldConfig => $DynamicFieldConfig,
Behavior => 'SetsDynamicContent',
);

my $ReferenceID = $DFParam->{ $DynamicFieldConfig->{Config}{ReferenceDFName} } ? $DFParam->{ $DynamicFieldConfig->{Config}{ReferenceDFName} }[0] : undef;

Expand Down Expand Up @@ -722,7 +726,7 @@ sub GetFieldState {
}

# if this field is non ACL reducible, set the field values
return %Return if !$IsACLReducible;
return %Return if ( !$IsACLReducible && !$SetsDynamicContent );

# get possible values if ACLReducible
# this is what the FieldRestrictions object would do for other fields
Expand Down

0 comments on commit 0caa8f1

Please sign in to comment.