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:
parent
865c1d315b
commit
256b52a0d7
4 changed files with 22 additions and 19 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue