Allow UserAdmin to view another person's inbox.

This commit is contained in:
Colin Kuskie 2009-04-07 11:31:34 -07:00
parent 851912712f
commit 7316f267fa

View file

@ -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'));
}
#-------------------------------------------------------------------