Custom Fields and CreateTicket (only) rights

I have a form that I created for people to submit tickets, however I
don’t want to turn on the SeeQueue right. The catch is that I have
this form showing the custom fields so they can be submitted right
from that form when the ticket is created.

The catch is that I can’t ->Load the queue without the SeeQueue rights present.

my $QueueObj = new RT::Queue($session{‘CurrentUser’});
$QueueObj->Load($Queue) || Abort(loc(“Queue could not be loaded.”));
my $CFs = $QueueObj->CustomFields();

Any idea how I can get around this?

Andy Harrison
FreeBSD-4.10
postgresql-7.4.5
apache+mod_ssl-1.3.31+2.8.19
perl-5.8.5
rt-3.2.2

Andy Harrison wrote:

I have a form that I created for people to submit tickets, however I
don’t want to turn on the SeeQueue right. The catch is that I have
this form showing the custom fields so they can be submitted right
from that form when the ticket is created.

The catch is that I can’t ->Load the queue without the SeeQueue rights present.

my $QueueObj = new RT::Queue($session{‘CurrentUser’});
$QueueObj->Load($Queue) || Abort(loc(“Queue could not be loaded.”));
my $CFs = $QueueObj->CustomFields();

Any idea how I can get around this?

Create Queue object in context of $RT::SystemUser, but check
‘CreateTicket’ right of the current user.

$user_obj->HasRight(Right => ‘CreateTicket’, Object => $queue_obj);

See also: Request Tracker Wiki

			Best regards. Ruslan.