Final state and status fixes.

In these three files, any check for status=archived was removed, since
in each case it is possible that the Asset may want to be viewable
when it is archived, like Files, Posts, etc.
Updated Session/Url.t to remove tests for status=archived.
This commit is contained in:
Colin Kuskie 2007-11-22 18:46:17 +00:00
parent 865c1d315b
commit 256b52a0d7
4 changed files with 22 additions and 19 deletions

View file

@ -288,7 +288,7 @@ sub checkView {
$http->setRedirect($self->getUrl("func=manageClipboard"));
return "redirect";
}
elsif ($self->get("state") ne "published" && $self->get("state") ne "archived") { # tell em it doesn't exist anymore
elsif ($self->get("state") ne "published") { # tell em it doesn't exist anymore
$http->setStatus("410");
my $notFound = WebGUI::Asset->getNotFound($self->session);
$self->session->asset($notFound);