[freeside-commits] freeside/FS/FS TicketSystem.pm, 1.10.2.2, 1.10.2.3
Mark Wells
mark at wavetail.420.am
Fri Oct 7 16:20:15 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv21167/FS/FS
Modified Files:
Tag: FREESIDE_2_3_BRANCH
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.10.2.2
retrieving revision 1.10.2.3
diff -u -w -d -r1.10.2.2 -r1.10.2.3
--- TicketSystem.pm 5 Oct 2011 07:04:22 -0000 1.10.2.2
+++ TicketSystem.pm 7 Oct 2011 23:20:13 -0000 1.10.2.3
@@ -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