NAME

RTx::RightsMatrix::Util - Subroutines for rights processing.

SYNOPSIS

Utility subroutines to support RTx::RightsMatrix.

Documentation

These routines probably shouldn't be used outside of RightsMatrix.

Todo

Repository

You can find repository of this project at svn://svn.chaka.net/RTx-RightsMatrix

AUTHOR

Todd Chapman <todd@chaka.net>

build_group_lists { RT::Group }

A helper function which takes an RT:Group and reutrns a list of lists of RT::Group objects. So if group A has group B as member and group B has groups C and D as a member, the resulting lol looks like:

[ [ 'A', 'B'. 'C' ], [ 'A', 'B'. 'D' ] ]

If group A has a member group E then it would look like this:

[ [ 'A', 'E' ], [ 'A', 'B'. 'C' ], [ 'A', 'B'. 'D' ] ]

The order of the outer list is not guaranteed.

acl_for_object ( RightName => $Right, ObjectType => $Type, ObjectType => $ObjectId )

Returns a list of ACEs for a given object and right.