From e959bba335870bad0c8483307260a021e786a9c9 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Thu, 13 Aug 2015 18:53:41 +0200 Subject: [PATCH] Validates it's enought to grant publicuser to user. Reference to PR where it will be actually fixed for now. --- test/organization/test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/organization/test.sh b/test/organization/test.sh index 66ce7fe..60e577e 100644 --- a/test/organization/test.sh +++ b/test/organization/test.sh @@ -351,6 +351,9 @@ function test_cdb_querytables_does_not_return_functions_as_part_of_the_resultset } function test_cdb_usertables_should_work_with_orgusers() { + + # This test validates the changes proposed in https://github.com/CartoDB/cartodb/pull/5021 + # create tables sql cdb_testmember_1 "CREATE TABLE test_perms_pub (a int)" sql cdb_testmember_1 "INSERT INTO test_perms_pub (a) values (1);" @@ -365,7 +368,7 @@ function test_cdb_usertables_should_work_with_orgusers() { # this is required to enable select from other schema - sql postgres "GRANT USAGE ON SCHEMA cdb_testmember_1 TO cdb_testmember_2"; + sql postgres "GRANT USAGE ON SCHEMA cdb_testmember_1 TO publicuser"; # test CDB_UserTables with publicuser