[Rt-devel] [PATCH] Specify Queue ACLS at queue declaration on initialdata
Ruslan Zakirov
ruslan.zakirov at gmail.com
Wed Jan 7 23:33:55 EST 2009
Here what we have in RTIR, works just fine:
for my $queue (map {$_->{Name}} @Queues) {
push @ACL, (
{ GroupDomain => 'RT::Queue-Role',
GroupType => 'Owner',
Queue => $queue,
Right => 'ModifyTicket', },
....
2009/1/8 Chad Granum <chad at opensourcery.com>:
> Currently ACLs and Queues must be done separately:
>
> @Queues = (
> ...
> );
>
> @ACL = (
> ...
> );
>
> Most often though you specially want to set the rights on a queue
> created previously. And with enough queues and rights it can be hard to
> find things depending on how you lay your file out. It also opens the
> possibility of typing the name of the queue wrong in one of the acls,
> something that can be hard to track down.
>
> This patch allows you to specify queue related ACLs in the Queue definition:
>
> @Queues = (
> ...
> ACL => [
> ...
> ],
> );
>
> The patch works by first creating the queue, then adding it as the Queue
> => in each item from ACL, then pushing that list onto the global @ACL
> list so they will be loaded with the others when Handle gets to them.
>
> Simply put this patch allows you more control over how you organize your
> initialdata while reusing code as much as possible.
>
> -Chad Granum
>
> OpenSourcery (www.opensourcery.com)
>
> _______________________________________________
> List info: http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-devel
>
>
--
Best regards, Ruslan.
More information about the Rt-devel
mailing list