[Rt-commit] r12527 - in rt/branches/3.8-TESTING: etc

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon May 19 09:16:28 EDT 2008


Author: sunnavy
Date: Mon May 19 09:16:27 2008
New Revision: 12527

Modified:
   rt/branches/3.8-TESTING/   (props changed)
   rt/branches/3.8-TESTING/etc/acl.Pg

Log:
 r12598 at sunnavys-mb:  sunnavy | 2008-05-19 21:12:34 +0800
 sequence "attachments_id_seq" only supports USAGE, SELECT, and UPDATE


Modified: rt/branches/3.8-TESTING/etc/acl.Pg
==============================================================================
--- rt/branches/3.8-TESTING/etc/acl.Pg	(original)
+++ rt/branches/3.8-TESTING/etc/acl.Pg	Mon May 19 09:16:27 2008
@@ -58,7 +58,13 @@
     }
 
     foreach my $table (@tables) {
-        push @acls, "GRANT SELECT, INSERT, UPDATE, DELETE ON $table TO $db_user;"
+        if ( $table =~ /^[a-z]/ && $table ne 'sessions' ) {
+# table like objectcustomfields_id_s
+            push @acls, "GRANT USAGE, SELECT, UPDATE ON $table TO $db_user;"
+        }
+        else {
+            push @acls, "GRANT SELECT, INSERT, UPDATE, DELETE ON $table TO $db_user;"
+        }
     }
     return (@acls);
 }


More information about the Rt-commit mailing list