add RT ACL for bulk updating tickets, #72964
[freeside.git] / rt / lib / RT / System.pm
index d0dc501..3bc36c3 100644 (file)
@@ -2,7 +2,7 @@
 #
 # COPYRIGHT:
 #
-# This software is Copyright (c) 1996-2012 Best Practical Solutions, LLC
+# This software is Copyright (c) 1996-2015 Best Practical Solutions, LLC
 #                                          <sales@bestpractical.com>
 #
 # (Except where explicitly superseded by other copyright notices)
@@ -86,6 +86,8 @@ our $RIGHTS = {
     LoadSavedSearch => "Allow loading of saved searches",     # loc_pair
     CreateSavedSearch => "Allow creation of saved searches",      # loc_pair
     ExecuteCode => "Allow writing Perl code in templates, scrips, etc", # loc_pair
+    #freeside
+    BulkUpdateTickets => "Bulk update tickets",
 };
 
 our $RIGHT_CATEGORIES = {
@@ -98,6 +100,8 @@ our $RIGHT_CATEGORIES = {
     LoadSavedSearch        => 'General',
     CreateSavedSearch      => 'General',
     ExecuteCode            => 'Admin',
+    #freeside
+    BulkUpdateTickets      => 'Staff',
 };
 
 # Tell RT::ACE that this sort of object can get acls granted
@@ -261,28 +265,6 @@ sub QueueCacheNeedsUpdate {
     }
 }
 
-=head2 QueueCacheNeedsUpdate ( 1 )
-
-Attribute to decide when SelectQueue needs to flush the list of queues
-  and retrieve new ones.  Set when queues are created, enabled/disabled
-  and on certain acl changes.  Should also better understand group management.
-
-If passed a true value, will update the attribute to be the current time.
-
-=cut
-
-sub QueueCacheNeedsUpdate {
-    my $self = shift;
-    my $update = shift;
-
-    if ($update) {
-        return $self->SetAttribute(Name => 'QueueCacheNeedsUpdate', Content => time);
-    } else {
-        my $cache = $self->FirstAttribute('QueueCacheNeedsUpdate');
-        return (defined $cache ? $cache->Content : 0 );
-    }
-}
-
 RT::Base->_ImportOverlays();
 
 1;