Fix #399 insert records in tables with no SELECT privileges
This commit is contained in:
Vendored
+2
@@ -34,6 +34,8 @@ GRANT ALL ON TABLE
|
||||
, users_tasks
|
||||
TO postgrest_test_anonymous;
|
||||
|
||||
GRANT INSERT ON TABLE insertonly TO postgrest_test_anonymous;
|
||||
|
||||
GRANT USAGE ON SEQUENCE
|
||||
auto_incrementing_pk_id_seq
|
||||
, items_id_seq
|
||||
|
||||
Vendored
+9
@@ -500,6 +500,15 @@ CREATE TABLE nullable_integer (
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: insertonly; Type: TABLE; Schema: test; Owner: -
|
||||
--
|
||||
|
||||
CREATE TABLE insertonly (
|
||||
v text NOT NULL
|
||||
);
|
||||
|
||||
|
||||
--
|
||||
-- Name: projects; Type: TABLE; Schema: test; Owner: -
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user