What is the right 'TakeTicket'

Hi.

Does anybody know what the right ‘TakeTicket’ is?

It’s not mentionned in the documentation. If I see correctly, it’s only used
in one place: lib/RT/Ticket_Overlay.pm, sub SetOwner.

TIA.

Best regards,
Matthias

Matthias Juchem wrote:

Hi.

Does anybody know what the right ‘TakeTicket’ is?
When ticket ticket owner is ‘nobody’ you have to AT LEAST be granted
with this right to change owner to you. Some rights can include this
too(for example SuperUser :))
Best regards. Ruslan.

Matthias Juchem wrote:

Hi.

Does anybody know what the right ‘TakeTicket’ is?

When ticket ticket owner is ‘nobody’ you have to AT LEAST be granted
with this right to change owner to you. Some rights can include this
too(for example SuperUser :))

No, that’s definitively OwnTicket. I have made that mistake previously.

Regards,
Matthias

Matthias Juchem wrote:

Matthias Juchem wrote:

Hi.

Does anybody know what the right ‘TakeTicket’ is?

When ticket ticket owner is ‘nobody’ you have to AT LEAST be granted
with this right to change owner to you. Some rights can include this
too(for example SuperUser :))

No, that’s definitively OwnTicket. I have made that mistake previously.
TakeTicket right is minimum requirment to change Owner of ticket now
owned by nobody. Look in code below.
What about this code?
sub SetOwner {

if ( $self->OwnerObj->Id == $RT::Nobody->Id ) {
unless ( $self->CurrentUserHasRight(‘ModifyTicket’)
|| $self->CurrentUserHasRight(‘TakeTicket’) ) {
return ( 0, $self->loc(“Permission Denied”) );
}
} elsif …

	Best regards. Ruslan.

Hi.On Monday 17 November 2003 12:38, Ruslan U. Zakirov wrote:

TakeTicket right is minimum requirment to change Owner of ticket now
owned by nobody. Look in code below.

Oh, sorry, you are right. I have had the global right TakeTicket and did not
notice.

Besides, the “Take” link is display if you have OwnTicket for that queue,
whether you have TakeTicket or not. Of course, trying to take the ticket if
you have OwnTicket but not TakeTicket fails.

So TakeTicket/StealTicket describes only the way you get the ticket by and you
always have to have OwnTicket, ok?

Best regards,
Matthias

Matthias Juchem wrote:

Hi.

TakeTicket right is minimum requirment to change Owner of ticket now
owned by nobody. Look in code below.

Oh, sorry, you are right. I have had the global right TakeTicket and did not
notice.

Besides, the “Take” link is display if you have OwnTicket for that queue,
whether you have TakeTicket or not. Of course, trying to take the ticket if
you have OwnTicket but not TakeTicket fails.

So TakeTicket/StealTicket describes only the way you get the ticket by and you
always have to have OwnTicket, ok?

	FAQ: Ownership changes vs rights.

User can be set as owner of ticket only if he has right ‘OwnTicket’.

Current user who try to change ownership of ticket have to have rights
also, see beelow:
1) If target ticket’s current Owner is Nobody then current user need
’TakeTicket’ or ‘ModifyTicket’ right.
2) If target ticket’s current Owner is not Nobody and not Current User
then current user need ‘ModifyTicket’ or ‘StealTicket’ right.
3) In other cases ‘ModifyTicket’ right allow user change ownership.

User in some cases can’t change ownership because of logic restrictions:
1) If current ticket’s owner is not Nobody and is not current user then
current user can change owner only if he do ‘Steal’ or ‘Force owner change’.

This is correct for RT-3.0.6
Best regards. Ruslan.