<& /Elements/ListActions, actions => \@results &> <& /Admin/Tools/RightsMatrix/Elements/CustomFieldRightsMatrix, ObjectType => 'RTx::AssetTracker::Type', LookupType => 'RTx::AssetTracker::Type-RTx::AssetTracker::Asset', ObjectRights => \%a_rights, ObjectSystem => $RTx::AssetTracker::System, PrincipalObj => $principal, %ARGS &>

Asset Type Key:

For an asset type the possible permissions are: % foreach (keys %a_rights) { % }
<%$_%><%$a_rights{$_}{RIGHT}%><%$a_rights{$_}{DESC}%>

<%INIT> my @results; my ($principal, $msg) = RTx::RightsMatrix::Util::get_principal( Principal => $ARGS{Principal}, User => $ARGS{User}, CurrentUser => $session{CurrentUser} ); unless (ref $principal) { $m->comp("/Elements/Error", Why => loc($msg)); $m->abort; } <%ARGS> $User => undef $Edit => 0 $Principal => 0 $Intersect => 0 <%ONCE> use RTx::RightsMatrix::Util; my %a_rights = ( 's' => { RIGHT => 'SeeType', DESC =>'Can see that asset type' }, 'r' => { RIGHT => 'ShowAsset', DESC =>'Can see assets of that type' }, 'w' => { RIGHT => 'ModifyAsset', DESC =>'Can edit/modify assets of that type' }, 'c' => { RIGHT => 'CreateAsset', DESC =>'Can create assets of that type' }, 'd' => { RIGHT => 'RetireAsset', DESC =>'Can delete assets of that type' }, );