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 21:14:25 -0800
commit7c5f50804027577aac17d0fcefedcd0d0b6ca180 (patch)
tree68273b26685ca221d44ef95511ded74ecc589e6e /rt/share/html/Search/Bulk.html
parentbcfa8b9c306cc871b5851d7c07ef0759eb1bcb31 (diff)
add RT ACL for bulk updating tickets, #72964
Conflicts: rt/lib/RT/System.pm
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 bacd96c3f..38b29fe33 100755
--- a/rt/share/html/Search/Bulk.html
+++ b/rt/share/html/Search/Bulk.html
@@ -203,6 +203,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 );