tightening up some old code

This commit is contained in:
JT Smith 2006-03-29 21:58:14 +00:00
parent c355601249
commit b4f0ddb79b
3 changed files with 1 additions and 3 deletions

View file

@ -1703,7 +1703,6 @@ sub www_add {
url=>$self->session->form->param("url")
);
$properties{isHidden} = 1 unless (WebGUI::Utility::isIn($class, @{$self->session->config->get("assetContainers")}));
$self->session->errorHandler->warn($properties{url});
my $newAsset = WebGUI::Asset->newByPropertyHashRef($self->session,\%properties);
$newAsset->{_parent} = $self;
return $self->session->privilege->insufficient() unless ($newAsset->canAdd($self->session));

View file

@ -1145,7 +1145,7 @@ sub www_view {
my $self = shift;
$self->markRead;
$self->incrementViews;
return $self->getThread->www_view($self->getId);
return $self->getThread->www_view;
}

View file

@ -956,7 +956,6 @@ Renders self->view based upon current style, subject to timeouts. Returns Privil
sub www_view {
my $self = shift;
my $postId = shift;
return $self->session->privilege->noAccess() unless $self->canView;
unless ($self->canView) {
if ($self->get("state") eq "published") { # no privileges, make em log in