remove WebGUI::Utility::isIn
This commit is contained in:
parent
0e754a51e4
commit
6aa26c2e44
61 changed files with 126 additions and 148 deletions
|
|
@ -1107,7 +1107,7 @@ sub www_deleteFileConfirm {
|
|||
my $self = shift;
|
||||
return $self->session->privilege->insufficient() unless ($self->canEdit);
|
||||
my $column = $self->session->form->process("file");
|
||||
return $self->www_edit unless (isIn($column, qw(image1 image2 image3 manual warranty brochure)));
|
||||
return $self->www_edit unless $column ~~ [qw(image1 image2 image3 manual warranty brochure)];
|
||||
my $store = $self->get($column);
|
||||
my $file = WebGUI::Storage->get($self->session,$store);
|
||||
$file->delete if defined $file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue