From Request Tracker Wiki
Jump to navigation Jump to search

This is useful if you have a custom ticket creation form which includes CustomFields and you want people who have CreateTicket rights without SeeQueue rights to be able to create tickets.

In your form, add this:


my $QueueObj = new RT::Queue( $RT::SystemUser );
$QueueObj->Load($Queue) || Abort(loc("Queue could not be loaded."));

% if ( $session{ 'CurrentUser' }->HasRight( Right => 'CreateTicket', Object => $QueueObj ) ) {

%     ...
% }

Credit to RuslanZakirov for this solution.