[Rt-commit] rt branch 5.0/remove-selfservice-asset-listing-bulk-and-title-links created. rt-5.0.5-74-g930c57a216

BPS Git Server git at git.bestpractical.com
Thu Dec 7 12:53:18 UTC 2023


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, 5.0/remove-selfservice-asset-listing-bulk-and-title-links has been created
        at  930c57a216af1deaf8e45910025ea7687a5230d1 (commit)

- Log -----------------------------------------------------------------
commit 930c57a216af1deaf8e45910025ea7687a5230d1
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Thu Dec 7 09:48:54 2023 -0300

    Remove SelfService Asset Listing Bulk Update and Title Link
    
    The Asset listing in SelfService has a bulk update option that is not
    functional.  It also has a link to the title that wants to take the user
    to asset search page that does not exist in SelfService.
    
    This patch removes the bulk update option and the title link.

diff --git a/share/html/User/Elements/AssetList b/share/html/User/Elements/AssetList
index 44a328db48..a4c2eb4516 100644
--- a/share/html/User/Elements/AssetList
+++ b/share/html/User/Elements/AssetList
@@ -79,21 +79,23 @@ my $query_string = $m->comp('/Elements/QueryString',
     Order       => $QueryProperties{Order},
 );
 
-my $search_url  =
-    RT->Config->Get('WebPath') .
-    '/Search/Results.html?' .
-    $query_string;
+my ($search_url, $bulk_update_title, $bulk_update_url);
 
-my $bulk_update_url  =
-    RT->Config->Get('WebPath') .
-    '/Asset/Search/Bulk.html?' .
-    $query_string;
+if ($session{CurrentUser}->Privileged) {
+    $search_url = RT->Config->Get('WebPath') .
+        '/Search/Results.html?' .
+        $query_string;
+    $bulk_update_title = loc('Bulk Update');
+    $bulk_update_url = RT->Config->Get('WebPath') .
+        '/Asset/Search/Bulk.html?' .
+        $query_string;
+}
 
 </%init>
 <&| /Widgets/TitleBox,
     title => $Title,
     title_href => $search_url,
-    titleright => loc('Bulk Update'),
+    titleright => $bulk_update_title,
     titleright_href => $bulk_update_url,
     class => "user asset-list",
 &>

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


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list