[Rt-commit] rt branch, 4.2/disabled-message-on-user-summary, created. rt-4.2.2-9-g95dd9a3
Jim Brandt
jbrandt at bestpractical.com
Mon Feb 3 10:23:42 EST 2014
The branch, 4.2/disabled-message-on-user-summary has been created
at 95dd9a3cfc60bd61f1362a3a5432c6ab4a4188bf (commit)
- Log -----------------------------------------------------------------
commit 95dd9a3cfc60bd61f1362a3a5432c6ab4a4188bf
Author: Jim Brandt <jbrandt at bestpractical.com>
Date: Mon Feb 3 10:23:14 2014 -0500
Display a message on user summary for disabled users
diff --git a/share/html/User/Summary.html b/share/html/User/Summary.html
index a88636f..e99f5d5 100644
--- a/share/html/User/Summary.html
+++ b/share/html/User/Summary.html
@@ -49,6 +49,7 @@
<& /Elements/Tabs &>
<& /Elements/GotoUser &>
+<& /Elements/ListActions, actions => \@results &>
<%perl>
$m->callback( CallbackName => 'BeforePortlets', User => $User );
@@ -66,6 +67,11 @@ unless ($status) {
Abort("Unable to load User $id");
}
+my @results;
+if ( $User->Disabled ){
+ push @results, loc('User [_1] is currently disabled. Edit the user and select "Let this user access RT" to enable.', $User->Name);
+}
+
my $portlets = RT->Config->Get('UserSummaryPortlets');
my $show_portlet = sub {
-----------------------------------------------------------------------
More information about the rt-commit
mailing list