[Rt-devel] [PATCH] Specify Queue ACLS at queue declaration on initialdata
Chad Granum
chad at opensourcery.com
Wed Jan 7 23:51:56 EST 2009
Thats very useful, but only if you want to assign the same right to all
your queues, this is for cases where you have different rights per
queue, and do not want to have the queue and its rights separate.
This is actual one part of a larger thing I have been working on/using
at opensourcery, and thinking about it each part separate like this is
probably not as good as if I rolled it all into a Handle and submitted a
full patch.
Stay tuned ;-)
-Chad
Ruslan Zakirov wrote:
> 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
>>
>>
>>
>
>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20090107/d48df77f/attachment.pgp
More information about the Rt-devel
mailing list