From 7316f267fa9efa85b5b95513bb0183f392eaa41a Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Tue, 7 Apr 2009 11:31:34 -0700 Subject: [PATCH] Allow UserAdmin to view another person's inbox. --- lib/WebGUI/Account/Inbox.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/WebGUI/Account/Inbox.pm b/lib/WebGUI/Account/Inbox.pm index 57d6b5af1..8f44fe7b3 100644 --- a/lib/WebGUI/Account/Inbox.pm +++ b/lib/WebGUI/Account/Inbox.pm @@ -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')); } #-------------------------------------------------------------------