Allow UserAdmin to view another person's inbox.
This commit is contained in:
parent
851912712f
commit
7316f267fa
1 changed files with 3 additions and 1 deletions
|
|
@ -77,7 +77,9 @@ Returns whether or not the user can view the inbox tab
|
|||
|
||||
sub canView {
|
||||
my $self = shift;
|
||||
return ($self->uid eq "");
|
||||
my $session = $self->session;
|
||||
return $self->uid eq ""
|
||||
|| $self->uid ne "" && $session->user->isInGroup($session->setting->get('groupIdAdminUser'));
|
||||
}
|
||||
|
||||
#-------------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue