[rt-users] ACL not removed ???
Hello, I've upgraded from 4.0 to 4.2.6 last week (but i don't know if that matter...). I've discovered today that some access right are very strange. The facts : - access right are ONLY on groups (never on users), - 2 users are member of the same groups : GroupId 1663 and 4777 - user1 is older than user2. - the 2 users are privilegied, but Not admin, - user1 have restricted access to some queues (Ok) - user2 have full acces to ALL queues (Not Ok ) So i've tried to disabled groups : the problem occur on groupId 4777 : when it is disabled, all access are ok, and resctrict access working. So i've removed ALL right to this group : that's make no changes : when the group is un-disabled, user1 has his normal and restricted access, but user2 have full access to all queues. One more time, when i disable the groupId 4777 , all goes right. So i'm a bit lost .. Have you any idea ? Thanks in advance. Eric -- RT Training - Boston, September 9-10 http://bestpractical.com/training
Re: [rt-users] rt-crontool and --action RT::Action::NotifyAsComment
Many thanks for tour help ! Le 21 janv. 2014 20:38, Kevin Falcone falc...@bestpractical.com a écrit : On Thu, Jan 16, 2014 at 06:46:06PM +0100, Eric Maisonobe wrote: Hello, I try to use the following cron task : /opt/rt4/bin/rt-crontool \ --search RT::Search::FromSQL \ --search-arg Created '1 day ago' AND (Status = 'new') \ --action RT::Action::NotifyAsComment \ --action-arg 'OtherRecipients' --template 'my_nice_template' but nothing is done (no comment and no notification), because RT complains : [critical]: Can't call method CreatorObj on an undefined value at /opt/rt4/bin/../lib/RT/Action/Notify.pm line 134. (/opt/rt4/bin/../lib/RT.pm:400) I look at /opt/rt4/bin/../lib/RT/Action/Notify.pm line 134 and i see : my $creatorObj = $self-TransactionObj-CreatorObj; So, does anybody knows : - how to use rt-crontool with --action RT::Action::NotifyAsComment, - or how to specify the default RT system user in the Notify.pm script something like : eval( my $creatorObj = $self-TransactionObj-CreatorObj) || my $creatorObj = RT_DEFAULT_USER_OBJ; You want the --transaction argument if you're going to use a Notify action: http://bestpractical.com/docs/rt/latest/rt-crontool.html You want first or last, not all. You may find the notification example of the reminders documentation interesting http://bestpractical.com/docs/rt/latest/reminders.html#Email-Reminders -kevin
Re: [rt-users] Need help about scrip condition
Many thanks : this exactly what i was looking for ! Le 17 janv. 2014 14:34, Emmanuel Lacour elac...@easter-eggs.com a écrit : On Thu, Jan 16, 2014 at 06:57:12PM +0100, Eric MAISONOBE wrote: So i have 2 questions : - what's the way to check if the comment creator is Enoch root, and in this case (and only in this case) to notify the comment to 'OtherRecipients', Something like this (untested): my $RootUser = RT::User-new( $self-CurrentUser ); $RootUser-Load( 'root' ); if ($Transaction-CreatorObj-id == $RootUser-id ) { ... - moreover, where can i found the code corresponding to default conditions and actions pre-existing in RT web interface ? Conditions: lib/RT/Condition/*.pm Actions: lib/RT/Action/*.pm -- Easter-eggs Spécialiste GNU/Linux 44-46 rue de l'Ouest - 75014 Paris - France - Métro Gaité Phone: +33 (0) 1 43 35 00 37- Fax: +33 (0) 1 43 35 00 76 mailto:elac...@easter-eggs.com - http://www.easter-eggs.com
[rt-users] rt-crontool and --action RT::Action::NotifyAsComment
Hello, I try to use the following cron task : /opt/rt4/bin/rt-crontool \ --search RT::Search::FromSQL \ --search-arg Created '1 day ago' AND (Status = 'new')\ --action RT::Action::NotifyAsComment \ --action-arg 'OtherRecipients' --template 'my_nice_template' but nothing is done (no comment and no notification), because RT complains : [critical]: Can't call method CreatorObj on an undefined value at /opt/rt4/bin/../lib/RT/Action/Notify.pm line 134. (/opt/rt4/bin/../lib/RT.pm:400) I look at /opt/rt4/bin/../lib/RT/Action/Notify.pm line 134 and i see : my $creatorObj = $self-TransactionObj-CreatorObj; So, does anybody knows : - how to use rt-crontool with --action RT::Action::NotifyAsComment, - or how to specify the default RT system user in the Notify.pm script something like : eval( my $creatorObj = $self-TransactionObj-CreatorObj) || my $creatorObj = RT_DEFAULT_USER_OBJ; Thank you for any suggestion ! Eric
[rt-users] Need help about scrip condition
Hello, I've disabled scrips for sending auto-notifications when a comment is added on tickets. BUT, i would like that comment created by rt-crontool been notified to 'OtherRecipients'. So i have 2 questions : - what's the way to check if the comment creator is Enoch root, and in this case (and only in this case) to notify the comment to 'OtherRecipients', - moreover, where can i found the code corresponding to default conditions and actions pre-existing in RT web interface ? (just because it's easier to modify working code instead of wrinting one from blank) Thank you by advance for any help ! Eric