tightening up some old code
This commit is contained in:
parent
c355601249
commit
b4f0ddb79b
3 changed files with 1 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue