[Rt-commit] rt branch 4.4/add-key-management-message-2 created. rt-4.4.5-16-ge48c03fe53

BPS Git Server git at git.bestpractical.com
Fri Jan 7 20:54:11 UTC 2022


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 4.4/add-key-management-message-2 has been created
        at  e48c03fe5368fb69100542df7d32db561395cc95 (commit)

- Log -----------------------------------------------------------------
commit e48c03fe5368fb69100542df7d32db561395cc95
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Wed Jan 5 13:34:30 2022 -0500

    Update user admin menu to just Keys
    
    The keys page allows you to manage both public and private
    keys for users, so remove "Private" from the menu label.

diff --git a/share/html/Elements/Tabs b/share/html/Elements/Tabs
index c4fdc384e5..05628475f9 100644
--- a/share/html/Elements/Tabs
+++ b/share/html/Elements/Tabs
@@ -391,7 +391,7 @@ my $build_admin_menu = sub {
                     path  => '/Admin/Users/DashboardsInMenu.html?id=' . $id,
                 );
                 if ( RT->Config->Get('Crypt')->{'Enable'} ) {
-                    $tabs->child( keys    => title => loc('Private keys'),   path => "/Admin/Users/Keys.html?id=" . $id );
+                    $tabs->child( keys    => title => loc('Keys'),   path => "/Admin/Users/Keys.html?id=" . $id );
                 }
                 $tabs->child( 'summary'   => title => loc('User Summary'),   path => "/User/Summary.html?id=" . $id );
             }
diff --git a/t/web/admin_user.t b/t/web/admin_user.t
index 9d17ca6225..a75236bd8e 100644
--- a/t/web/admin_user.t
+++ b/t/web/admin_user.t
@@ -29,7 +29,7 @@ $m->get_ok( $url . '/Admin/Users/History.html?id=' . $root->id );
 $m->content_contains('User created', 'has User created entry');
 
 diag "test keys page" if $ENV{TEST_VERBOSE};
-$m->follow_link_ok( { text => 'Private keys' } );
+$m->follow_link_ok( { text => 'Keys' } );
 $m->content_contains('Public key(s) for rt-test at example.com');
 $m->content_contains('The key is ultimately trusted');
 $m->content_contains('F0CB3B482CFA485680A4A0BDD328035D84881F1B');

commit b61634fb558e50e556f68854882490f3f6e69010
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Wed Jan 5 13:31:32 2022 -0500

    Add a message and link to the new GnuPG key trust admin page
    
    When looking at a user's keys you can see that it might not
    be trusted, but you can't modify the trust on that page.
    Provide a message and a link to the new admin page that allows
    you to modify the trust settings right in RT.

diff --git a/share/html/Admin/Elements/ShowKeyInfo b/share/html/Admin/Elements/ShowKeyInfo
index 8b2501b828..6dfd4c6817 100644
--- a/share/html/Admin/Elements/ShowKeyInfo
+++ b/share/html/Admin/Elements/ShowKeyInfo
@@ -46,6 +46,12 @@
 %#
 %# END BPS TAGGED BLOCK }}}
 <&| /Widgets/TitleBox, title => $title &><table>
+% if ( RT->Config->Get('GnuPG')->{Enable} && $session{'CurrentUser'}->HasRight( Right => 'SuperUser', Object => RT->System ) ) {
+<p>
+  <&|/l_unsafe, '<a href="' . RT->Config->Get("WebPath") . '/Admin/Tools/GnuPG.html">' . loc('Manage GnuPG Keys') . '</a>' &>Manage the trust level for keys at [_1].</&>
+</p>
+% }
+
 % while ( my $protocol = shift @protocols ) {
 % my %res = RT::Crypt->GetKeyInfo(
 %     Protocol => $protocol,

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list