add RT ACL for bulk updating tickets, #72964
[freeside.git] / rt / share / html / Ticket / Elements / Tabs
index 3a8a176..bcc97e5 100755 (executable)
@@ -196,7 +196,9 @@ if ($Ticket) {
     if ( $can{'ModifyTicket'} ) {
         if ( $Ticket->Status ne 'resolved' ) {
             $actions->{'G'} = {
-                path =>
+                path => 
+                    ($Ticket->MissingRequiredFields) ? 
+                    "Ticket/Modify.html?Status=resolved&id=$id" :
                     "Ticket/Update.html?Action="
                     . RT->Config->Get('ResolveDefaultUpdateType', $session{'CurrentUser'})
                     . "&DefaultStatus=resolved&id="
@@ -324,10 +326,15 @@ if ($has_query) {
         title => loc('Show Results'),
     };
 
-    $tabs->{"j"} = {
-        path  => "Search/Bulk.html$args",
-        title => loc('Bulk Update'),
-    };
+    #freeside
+    if ( $session{'CurrentUser'}
+         ->HasRight(Right => 'BulkUpdateTickets', Object => $RT::System) )
+    {
+      $tabs->{"j"} = {
+          path  => "Search/Bulk.html$args",
+          title => loc('Bulk Update'),
+      };
+    }
 
     $tabs->{"k"} = {
         path  => "Search/Chart.html$args",