At Thursday 9/6/2007 10:26 AM, Mathew Snyder wrote:
Stephen Turner wrote:
>
>
> At Thursday 9/6/2007 10:01 AM, Mathew Snyder wrote:
>> It seems to me that, as the RT Admin with SuperUser rights, I should
>> be able to
>> give tickets which I don't own to someone else.  Instead, I have to
>> steal the
>> ticket and then reassign it.  Is there a workaround for this?  It
>> seems like a
>> bit of unnecessary work for someone that has admin rights.
>
> Mathew,
>
> I think the only workaround is to modify the code - we did this so that
> queue admins (& super users) could switch ownership in one step. I can
> dig out the code change if you're interested.
>
> Steve
>

I am definitely interested.  Thank you.

Mathew

Mathew,

Here's the relevant piece of code from Ticket_Overlay.pm, from the SetOwner sub - bear in mind this is version 3.4.2. Looking at the code I realize it doesn't explicitly allow super users to do this - they may implicitly have AdminQueue rights for all queues, I'm not sure.

Steve

-------------------------------------------------------------------------------------

    #If thie ticket has an owner and it's not the current user

    if (    ( $Type ne 'Steal' )
        and ( $Type ne 'Force' )
        and    #If we're not stealing
( $self->OwnerObj->Id != $RT::Nobody->Id ) and #and the owner is set
        ( $self->CurrentUser->Id ne $self->OwnerObj->Id() ) #and it's not us
# BEGIN MIT ADDITION
# We now allow queue administrators to reassign tickets even if they're
# not the owner:
        and (! $self->CurrentUser->HasRight(Right => 'AdminQueue',
                                            Object => $self->QueueObj ) )
# END MIT ADDITION
      ) {
        return ( 0,
                 $self->loc(
"You can only reassign tickets that you own or that are unowned" ) );
    }






_______________________________________________
http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users

Community help: http://wiki.bestpractical.com
Commercial support: [EMAIL PROTECTED]


Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com

Reply via email to