[Rt-commit] rtir branch, 2.9/grant-dutyteam-showoutgoingemail, created. 3.0.0rc1-51-gedd2478

Jim Brandt jbrandt at bestpractical.com
Tue Apr 23 16:16:35 EDT 2013


The branch, 2.9/grant-dutyteam-showoutgoingemail has been created
        at  edd247821ae054b5c688f043e53cacd9ceceb03f (commit)

- Log -----------------------------------------------------------------
commit edd247821ae054b5c688f043e53cacd9ceceb03f
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Fri Apr 19 13:20:40 2013 -0400

    Give DutyTeam the ShowOutgoingEmail right

diff --git a/etc/initialdata b/etc/initialdata
index 9589984..5715023 100644
--- a/etc/initialdata
+++ b/etc/initialdata
@@ -533,6 +533,10 @@ for my $queue (map {$_->{Name}} @Queues) {
       GroupDomain => 'UserDefined',
       Queue => $queue,
       Right  => 'Watch', },
+    { GroupId => 'DutyTeam',      # - principalId
+      GroupDomain => 'UserDefined',
+      Queue => $queue,
+      Right  => 'ShowOutgoingEmail', },
 );}
 
 push @ACL, (
diff --git a/etc/upgrade/3.0.0rc2/content b/etc/upgrade/3.0.0rc2/content
new file mode 100644
index 0000000..09c4a83
--- /dev/null
+++ b/etc/upgrade/3.0.0rc2/content
@@ -0,0 +1,24 @@
+use strict;
+use warnings;
+
+my @OUR_QUEUES = ('Incidents', 'Incident Reports', 'Investigations', 'Blocks');
+
+our @Initial = (
+    sub {
+        return 1 if grep $_ eq 'RT::IR', RT->Config->Get('Plugins');
+
+        die "Please enable RT::IR plugin in the config file.\n";
+    },
+);
+
+our @ACL;
+foreach my $queue (@OUR_QUEUES) {
+    push @ACL, (
+    { GroupId => 'DutyTeam',
+      GroupDomain => 'UserDefined',
+      Queue => $queue,
+      Right  => 'ShowOutgoingEmail', },
+ );
+}
+
+1;

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


More information about the Rt-commit mailing list