[Rt-devel] Giving rights to Creator
Raed El-Hames
rfh at vialtus.com
Fri Feb 19 09:09:29 EST 2010
>> You intercept it and do:
>> if ( $args{Object}{'_Class'} eq 'RT::Ticket' and $args{Right} =~
>> /(ReplyTo|Show)Ticket/) {
>> return (1) if ($args{Object}->Creator == $self->CurrentUser->id)
>> }
>>
>>
>>
>
> That's about what I did (a little bit more complicate as I also handle
> rights with customfields ;)). But If you try what you wrote above, you
> will find that calling $args{Object}->Creator trigger an infinite loop...
>
>
I have n't tried the $args{Object}->Creator myself I was just guessing,
however I have come across an infinite loop within _HasRight while
trying other Rights manupilation.
I have posted to this very same list about this early this month.
Is $UseSQLForACLChecks set ?? I noticed when this is set , all kind of
problems popup when you try to modify Rights ??
Possibly something else you can try is ($args{Object}->CreatorObj->Id)
and by the way you need to make sure you are dealing with a Ticket Obj .
Can you post the working solution when you get there.
Roy
More information about the Rt-devel
mailing list