diff --git a/scripts-available/CDB_Conf.sql b/scripts-available/CDB_Conf.sql index a51136b..8f347d7 100644 --- a/scripts-available/CDB_Conf.sql +++ b/scripts-available/CDB_Conf.sql @@ -2,6 +2,7 @@ DO LANGUAGE 'plpgsql' $$ BEGIN CREATE TABLE IF NOT EXISTS cartodb.CDB_CONF ( PARAM TEXT PRIMARY KEY, CONF TEXT NOT NULL ); + EXECUTE format('GRANT SELECT ON cartodb.CDB_CONF TO %s', cartodb.CDB_Organization_Member_Group_Role_Member_Name()); END $$; diff --git a/test/organization/test.sh b/test/organization/test.sh index c1e86f3..7a80484 100644 --- a/test/organization/test.sh +++ b/test/organization/test.sh @@ -163,8 +163,8 @@ function setup() { sql "GRANT USAGE ON SCHEMA cartodb TO public;" log_info "########################### BOOTSTRAP ###########################" - ${CMD} -d ${DATABASE} -f scripts-available/CDB_Conf.sql ${CMD} -d ${DATABASE} -f scripts-available/CDB_Organizations.sql + ${CMD} -d ${DATABASE} -f scripts-available/CDB_Conf.sql ${CMD} -d ${DATABASE} -f scripts-available/CDB_Groups.sql ${CMD} -d ${DATABASE} -f scripts-available/CDB_Groups_API.sql