[Rt-commit] r4576 - in rtir/branches/1.9-EXPERIMENTAL: etc
alexmv at bestpractical.com
alexmv at bestpractical.com
Thu Feb 23 19:57:13 EST 2006
Author: alexmv
Date: Thu Feb 23 19:57:12 2006
New Revision: 4576
Modified:
rtir/branches/1.9-EXPERIMENTAL/ (props changed)
rtir/branches/1.9-EXPERIMENTAL/etc/initialdata
Log:
r9284 at zoq-fot-pik: chmrr | 2006-02-23 19:56:25 -0500
* Add CF ACLs
* Use a loop to generate shared ACLs on the queues
Modified: rtir/branches/1.9-EXPERIMENTAL/etc/initialdata
==============================================================================
--- rtir/branches/1.9-EXPERIMENTAL/etc/initialdata (original)
+++ rtir/branches/1.9-EXPERIMENTAL/etc/initialdata Thu Feb 23 19:57:12 2006
@@ -638,95 +638,56 @@
},
);
- at ACL = (
+ at ACL = ();
+for my $queue (map {$_->{Name}} @Queues) {
+ push @ACL, (
{ GroupDomain => 'RT::Queue-Role',
- GroupType => Owner,
- Queue => 'Incidents',
+ GroupType => 'Owner',
+ Queue => $queue,
Right => 'ModifyTicket', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
+ Queue => $queue,
Right => 'ShowTemplate', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
+ Queue => $queue,
Right => 'CreateTicket', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
+ Queue => $queue,
Right => 'OwnTicket', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
+ Queue => $queue,
Right => 'CommentOnTicket', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
+ Queue => $queue,
Right => 'SeeQueue', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
+ Queue => $queue,
Right => 'ShowTicket', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
+ Queue => $queue,
Right => 'ShowTicketComments', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
+ Queue => $queue,
Right => 'StealTicket', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
+ Queue => $queue,
Right => 'TakeTicket', },
{ GroupId => 'DutyTeam', # - principalId
GroupDomain => 'UserDefined',
- Queue => 'Incidents',
- Right => 'Watch', },
- { GroupDomain => 'RT::Queue-Role',
- GroupType => Owner,
- Queue => 'Incident Reports',
- Right => 'ModifyTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
- Right => 'ShowTemplate', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
- Right => 'CreateTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
- Right => 'OwnTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
- Right => 'CommentOnTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
- Right => 'SeeQueue', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
- Right => 'ShowTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
- Right => 'ShowTicketComments', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
- Right => 'StealTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
- Right => 'TakeTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Incident Reports',
+ Queue => $queue,
Right => 'Watch', },
+);}
+
+push @ACL, (
{ GroupType => 'Everyone',
GroupDomain => 'SystemInternal',
Queue => 'Incident Reports',
@@ -735,104 +696,33 @@
GroupDomain => 'SystemInternal',
Queue => 'Incident Reports',
Right => 'ReplyToTicket', },
- { GroupDomain => 'RT::Queue-Role',
- GroupType => Owner,
- Queue => 'Investigations',
- Right => 'ModifyTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'ShowTemplate', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'CreateTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'OwnTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'CommentOnTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'SeeQueue', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'ShowTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'ShowTicketComments', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'StealTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'TakeTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Investigations',
- Right => 'Watch', },
+
{ GroupType => 'Everyone',
GroupDomain => 'SystemInternal',
Queue => 'Investigations',
Right => 'ReplyToTicket', },
- { GroupDomain => 'RT::Queue-Role',
- GroupType => Owner,
- Queue => 'Blocks',
- Right => 'ModifyTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'CreateTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'ShowTemplate', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'OwnTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'CommentOnTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'SeeQueue', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'ShowTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'ShowTicketComments', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'StealTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'TakeTicket', },
- { GroupId => 'DutyTeam', # - principalId
- GroupDomain => 'UserDefined',
- Queue => 'Blocks',
- Right => 'Watch', },
+
{ GroupType => 'Everyone',
GroupDomain => 'SystemInternal',
Queue => 'Blocks',
Right => 'ReplyToTicket', },
);
+for my $cf (@CustomFields) {
+ push @ACL, (
+ { GroupId => 'DutyTeam',
+ GroupDomain => 'UserDefined',
+ CF => $cf->{Name},
+ Queue => $cf->{Queue},
+ Right => 'SeeCustomField', },
+ { GroupId => 'DutyTeam',
+ GroupDomain => 'UserDefined',
+ CF => $cf->{Name},
+ Queue => $cf->{Queue},
+ Right => 'ModifyCustomField', },
+ );
+}
+
@Attributes = ( {
Name => 'RTIR_HomepageSettings',
Description => 'RTIR homepage settings',
More information about the Rt-commit
mailing list