[rt-users] Re: [Rt-devel] Custom Fields and CreateTicket (only) rights...
Ruslan U. Zakirov
Ruslan.Zakirov at acronis.com
Wed Dec 1 10:30:48 EST 2004
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: http://wiki.bestpractical.com/index.cgi?GlobalObjects
Best regards. Ruslan.
More information about the rt-users
mailing list