remove WebGUI::Utility::isIn

This commit is contained in:
Graham Knop 2010-09-07 12:33:15 -05:00
parent 0e754a51e4
commit 6aa26c2e44
61 changed files with 126 additions and 148 deletions

View file

@ -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,