[rt-users] RT 3.6.3: Cannot chnage owner to another user.

Andrew Redman aredman at education.ucsb.edu
Fri Feb 2 12:15:56 EST 2007


That diff isn't quite what I got with RT 3.6.3 - Mine looks more like this:

--- /opt/rt3/lib/RT/Ticket_Overlay.pm 2006-12-01 11:00:23.000000000 -0800
+++ /opt/rt3/local/lib/RT/Ticket_Overlay.pm 2007-02-02 
09:07:05.000000000 -0800
@@ -3016,7 +3016,8 @@
# the current user
if ( $Type ne 'Steal' and $Type ne 'Force'
and $OldOwnerObj->Id != $RT::Nobody->Id
- and $OldOwnerObj->Id != $self->CurrentUser->Id )
+ and $OldOwnerObj->Id != $self->CurrentUser->Id
+ and !$self->CurrentUserHasRight('SuperUser'))
{
return ( 0, $self->loc("You can only take tickets that are unowned") )
if $NewOwnerObj->id == $self->CurrentUser->id;


Judging from the date on your diff, you may have not updated your local 
copy of Ticket_Overlay.pm when you updated RT. Either way, thanks for 
the good idea.

Cheers,
Andrew Redman
--
aredman at education.ucsb.edu
Help Desk Consultant
Gevirtz Graduate School of Education
University of California Santa Barbara
--


Peer Michael wrote:
> With this diff, superusers can reassign tickets. It works for us.
> --- /opt/rt3/lib/RT/Ticket_Overlay.pm 2005-11-14 21:43:24.000000000 +0100
> +++ /opt/rt3/local/lib/RT/Ticket_Overlay.pm 2007-01-30 
> 17:39:31.000000000 +0100
> @@ -2959,6 +2959,7 @@
> 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 (!$self->CurrentUserHasRight('SuperUser')) #and is not superuser
> ) { #and it's not us
> return ( 0,
> $self->loc(
> Michael Peer
>
> ------------------------------------------------------------------------
> *From:* rt-users-bounces at lists.bestpractical.com 
> [mailto:rt-users-bounces at lists.bestpractical.com] *On Behalf Of *Nick 
> Metrowsky
> *Sent:* Thursday, 01 February, 2007 23:25
> *To:* RT Users
> *Subject:* [rt-users] RT 3.6.3: Cannot chnage owner to another user.
>
> Hi Everyone,
>
> I have Super User and I cannot change the ownership of a ticket from 
> one person to another. I get an error “You can only take tickets that 
> are unowned” or “You can only reassign tickets that you own or that 
> are unowned”. This is definitely a different behavior than that of RT 
> 3.4.4.
>
> Any ideas on this one?
>
> Nick
>
> *---------------------------------------------------------------------------------*
>
> *Nick Metrowsky***
>
> *Consulting System Administrator***
>
> *303-684-4785 Office***
>
> *303-684-4100 Fax***
>
> *nmetrowsky at digitalglobe.com <mailto:nmetrowsky at digitalglobe.com>***
>
> *DigitalGlobe ®, An Imaging and Information Company*
>
> *http://www.digitalglobe.com*
>
> *---------------------------------------------------------------------------------*
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
>
> Community help: http://wiki.bestpractical.com
> Commercial support: sales at bestpractical.com
>
>
> Discover RT's hidden secrets with RT Essentials from O'Reilly Media. 
> Buy a copy at http://rtbook.bestpractical.com
>   
-------------- next part --------------
A non-text attachment was scrubbed...
Name: aredman.vcf
Type: text/x-vcard
Size: 68 bytes
Desc: not available
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20070202/0626b846/attachment.vcf>


More information about the rt-users mailing list