Check permissions in account plugin
This commit is contained in:
parent
7b7d1b4d2e
commit
7b796ed76e
1 changed files with 6 additions and 0 deletions
|
|
@ -172,6 +172,12 @@ sub callMethod {
|
|||
);
|
||||
return undef;
|
||||
}
|
||||
|
||||
unless ($self->canView) {
|
||||
my $session = $self->session;
|
||||
$session->output->print($session->privilege->insufficient);
|
||||
return undef;
|
||||
}
|
||||
|
||||
#Try to call the method
|
||||
my $output = eval { $self->$method(@{$args}) };
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue