[rt-users] bulk change ownership
Martin Schapendonk
martin at schapendonk.org
Thu Sep 20 15:44:09 EDT 2001
On 20 Sep 2001, Steffen Weinreich wrote:
# members. Now all reassigned tickets have to be stolen by the stuff member
# individualy, but it would be more easily for all if we could to that online on
# the meeting ...
Use a user with sufficient rights. I'm not quite familiar with RT's ACL
system, but I think you need SuperUser rights to change a ticket from
one owner to another.
*test*
Hm, doesn't work. Even the SuperUser isn't allowed to reassign already
assigned tickets. I think this can be considered a bug.
I attached a patch which checks to see if you're a SuperUser and then
allows the SetOwner. Maybe this can make it into the next version?
Martin
--
Martin Schapendonk, martin at schapendonk.org, Phone: +31 (0)6 55770237
Student Information Systems and Management at Tilburg University
-------------- next part --------------
--- lib/RT/Ticket.pm- Thu Sep 20 21:37:41 2001
+++ lib/RT/Ticket.pm Thu Sep 20 21:40:56 2001
@@ -2330,6 +2330,7 @@
if (($Type ne 'Steal' ) and #If we're not stealing
($self->OwnerObj->Id != $RT::Nobody->Id ) and #and the owner is set
+ !$self->CurrentUserHasRight('SuperUser') and #and we're not a SuperUser
($self->CurrentUser->Id ne $self->OwnerObj->Id())) { #and it's not us
return(0, "You can only reassign tickets that you own or that are unowned");
}
More information about the rt-users
mailing list