[freeside-commits] freeside/bin pg-readonly,1.2,1.2.12.1
Ivan,,,
ivan at wavetail.420.am
Wed Mar 30 09:57:43 PDT 2011
Update of /home/cvs/cvsroot/freeside/bin
In directory wavetail.420.am:/tmp/cvs-serv24032
Modified Files:
Tag: FREESIDE_2_1_BRANCH
pg-readonly
Log Message:
add rt tables to pg-readonly, RT#10536
Index: pg-readonly
===================================================================
RCS file: /home/cvs/cvsroot/freeside/bin/pg-readonly,v
retrieving revision 1.2
retrieving revision 1.2.12.1
diff -u -w -d -r1.2 -r1.2.12.1
--- pg-readonly 25 Feb 2005 22:14:41 -0000 1.2
+++ pg-readonly 30 Mar 2011 16:57:41 -0000 1.2.12.1
@@ -22,3 +22,34 @@
$dbh->commit();
}
}
+
+my @rt_tables = qw(
+Attachments
+Queues
+Links
+Principals
+Groups
+ScripConditions
+Transactions
+Scrips
+ACL
+GroupMembers
+CachedGroupMembers
+Users
+Tickets
+ScripActions
+Templates
+ObjectCustomFieldValues
+CustomFields
+ObjectCustomFields
+CustomFieldValues
+Attributes
+sessions
+);
+
+foreach my $rt_table ( @rt_tables ) {
+ $dbh->do("GRANT SELECT ON $table TO $rouser");
+ $dbh->commit();
+ $dbh->do("GRANT SELECT ON ${table}_id_seq TO $rouser");
+ $dbh->commit();
+}
More information about the freeside-commits
mailing list