[rt-users] RT 3.6.3: Cannot chnage owner to another user.
Peer Michael
Michael.Peer at eurac.edu
Mon Feb 5 02:48:39 EST 2007
My diff is for rt-3.4.5
Michael
-----Original Message-----
From: rt-users-bounces at lists.bestpractical.com
[mailto:rt-users-bounces at lists.bestpractical.com] On Behalf Of Andrew
Redman
Sent: Friday, 02 February, 2007 18:16
To: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] RT 3.6.3: Cannot chnage owner to another user.
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 (r), 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
>
More information about the rt-users
mailing list