[Rt-devel] [PATCH] Specify Queue ACLS at queue declaration on initialdata

Chad Granum chad at opensourcery.com
Wed Jan 7 18:53:01 EST 2009

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)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rt-QueueACL.patch
Type: text/x-diff
Size: 651 bytes
Desc: not available
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20090107/7408a74f/attachment.patch 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.bestpractical.com/pipermail/rt-devel/attachments/20090107/7408a74f/attachment.pgp 

More information about the Rt-devel mailing list