[Rt-commit] rt branch, 3.8-trunk, updated. rt-3.8.5-225-g459f4fa
Ruslan Zakirov
ruz at bestpractical.com
Thu Oct 1 23:27:28 EDT 2009
The branch, 3.8-trunk has been updated
via 459f4fa2e09401b219450beaa99d73df6d89d163 (commit)
from 68d8ac9b54ff33b182fb5bdbece7ebedf317f1e8 (commit)
Summary of changes:
share/html/Ticket/Elements/ShowRequestor | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit 459f4fa2e09401b219450beaa99d73df6d89d163
Author: Ruslan Zakirov <ruz at bestpractical.com>
Date: Fri Oct 2 07:26:35 2009 +0400
don't show link to admin user if the current user has no ShowConfigTab
diff --git a/share/html/Ticket/Elements/ShowRequestor b/share/html/Ticket/Elements/ShowRequestor
index 7bb525b..5a7ffc2 100755
--- a/share/html/Ticket/Elements/ShowRequestor
+++ b/share/html/Ticket/Elements/ShowRequestor
@@ -53,7 +53,12 @@ unless ( @$conditions ) {
}
}
my $rows = 10;
-my $has_right_adminusers = $session{'CurrentUser'}->HasRight(Object => $RT::System, Right => 'AdminUsers');
+my $has_right_adminusers = $session{'CurrentUser'}->HasRight(
+ Object => $RT::System, Right => 'AdminUsers'
+);
+$has_right_adminusers &&= $session{'CurrentUser'}->HasRight(
+ Object => $RT::System, Right => 'ShowConfigTab'
+);
my $people = $Ticket->Requestors->UserMembersObj;
while ( my $requestor = $people->Next ) {
next if $requestor->Privileged;
-----------------------------------------------------------------------
More information about the Rt-commit
mailing list