[freeside-commits] freeside/FS/FS TicketSystem.pm,1.12,1.13
Mark Wells
mark at wavetail.420.am
Fri Oct 7 16:20:05 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv21105/FS/FS
Modified Files:
TicketSystem.pm
Log Message:
RT ACL for freeside-daily, #13853
Index: TicketSystem.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/TicketSystem.pm,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -w -d -r1.12 -r1.13
--- TicketSystem.pm 5 Oct 2011 07:03:50 -0000 1.12
+++ TicketSystem.pm 7 Oct 2011 23:20:03 -0000 1.13
@@ -87,13 +87,14 @@
# bypass RT ACLs--we're going to do lots of things
my $CurrentUser = $RT::SystemUser;
- # selfservice user
+ # selfservice and cron users
+ foreach my $username ('%%%SELFSERVICE_USER', 'fs_daily') {
my $User = RT::User->new($CurrentUser);
- $User->Load('%%%SELFSERVICE_USER%%%');
+ $User->Load($username);
if (!defined($User->Id)) {
my ($val, $msg) = $User->Create(
- 'Name' => '%%%SELFSERVICE_USER%%%',
- 'Gecos' => '%%%SELFSERVICE_USER%%%',
+ 'Name' => $username,
+ 'Gecos' => $username,
'Privileged' => 1,
# any other fields needed?
);
@@ -110,6 +111,7 @@
);
die $msg if !$val;
}
+ } #foreach $username
# EscalateQueue custom field and friends
my $CF = RT::CustomField->new($CurrentUser);
More information about the freeside-commits
mailing list