Allow specific fields to be always editable by managers.
This commit is contained in:
parent
a5bef12584
commit
5a331c1825
1 changed files with 2 additions and 2 deletions
|
|
@ -442,7 +442,7 @@ sub www_edit {
|
|||
$properties->{ value } = $configuration->{ $name } if exists $configuration->{ $name };
|
||||
|
||||
my $formField = WebGUI::Form::DynamicField->new( $session, %{ $properties } );
|
||||
my $html = $self->admin->canOverride
|
||||
my $html = $self->admin->canOverride || $properties->{ managerCanEdit }
|
||||
? $formField->toHtml
|
||||
: $formField->getValueAsHtml
|
||||
;
|
||||
|
|
@ -593,7 +593,7 @@ sub www_editSave {
|
|||
my %fields = %{ $self->getAsset->getMailingProperties( $self ) };
|
||||
my $configuration = {};
|
||||
while ( my( $name, $properties ) = each %fields ) {
|
||||
if ( $self->admin->canOverride ) {
|
||||
if ( $self->admin->canOverride || $properties->{ managerCanEdit } ) {
|
||||
my $value = $form->process( $name, $properties->{ fieldType }, $properties->{ defaultValue } );
|
||||
|
||||
$configuration->{ $name } = $value;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue