[rt-users] Custom Action not performed if root

Daniel Jimenez djimenez at membersourcecu.org
Fri Mar 10 10:06:10 EST 2006


Not in my situation because currently it returns 1 if it's the system
user and doesn't perform the action. 

-----Original Message-----
From: Todd Chapman [mailto:todd at chaka.net] 
Sent: Thursday, March 09, 2006 9:39 PM
To: Daniel Jimenez
Cc: rt-users at lists.bestpractical.com
Subject: Re: [rt-users] Custom Action not performed if root

On Thu, Mar 09, 2006 at 06:37:45PM -0600, Daniel Jimenez wrote:
> All,
>  
> I'm having trouble with the below...
>  
> # get actor ID
> my $Actor = $self->TransactionObj->Creator;
>  
> # if actor is RT_SystemUser or root then get out of here
> return 1 if $Actor == $RT::SystemUser->id;
> return 1 if $Actor == root;
>  
> return 1;
>  
> I've tried == root and == 12 (the User's ID). Am I doing something
> wrong?
>  

Daniel,

If you don't want the action performed you should return 0,
not 1.

-Todd



More information about the rt-users mailing list