remove WebGUI::Utility::isIn
This commit is contained in:
parent
0e754a51e4
commit
6aa26c2e44
61 changed files with 126 additions and 148 deletions
|
|
@ -116,7 +116,7 @@ sub handler {
|
|||
while (my ($id) = $matchingAssets->array) {
|
||||
my $asset = eval { WebGUI::Asset->newById($session, $id); };
|
||||
if (! Exception::Class->caught() ) {
|
||||
if ($asset->canView && $asset->state eq 'published' && isIn($asset->status, 'approved', 'archived')) {
|
||||
if ($asset->canView && $asset->state eq 'published' && $asset->status ~~ ['approved', 'archived']) {
|
||||
push @assets, {
|
||||
title => $asset->getTitle,
|
||||
menuTitle => $asset->menuTitle,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue