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

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