summaryrefslogtreecommitdiff
path: root/rt/share/html/Search/Bulk.html
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-11-27 16:43:19 -0800
committerMark Wells <mark@freeside.biz>2016-11-27 16:43:19 -0800
commit34e42c0d926bf569ceaf8da784c2569bc7f83cec (patch)
tree9ad08eca35d56bc00ac3545ff2220d32673adfcd /rt/share/html/Search/Bulk.html
parent7fe7e453b6eb0778235e0a64e3b654f673d1caa2 (diff)
add RT ACL for bulk updating tickets, #72964
Diffstat (limited to 'rt/share/html/Search/Bulk.html')
-rwxr-xr-xrt/share/html/Search/Bulk.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/rt/share/html/Search/Bulk.html b/rt/share/html/Search/Bulk.html
index 89e850bfa..03e6bf027 100755
--- a/rt/share/html/Search/Bulk.html
+++ b/rt/share/html/Search/Bulk.html
@@ -236,6 +236,13 @@ unless ( defined $Rows ) {
}
my $title = loc("Update multiple tickets");
+#freeside
+unless ( $session{'CurrentUser'}
+ ->HasRight( Right => 'BulkUpdateTickets', Object => RT->System) )
+{
+ Abort('You are not allowed to bulk-update tickets.');
+}
+
# Iterate through the ARGS hash and remove anything with a null value.
map ( $ARGS{$_} =~ /^$/ && ( delete $ARGS{$_} ), keys %ARGS );