Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Grant additional permissions to demoUser role #3880

Merged
merged 1 commit into from
Oct 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions hasura.planx.uk/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1960,6 +1960,17 @@
- role
- id
filter: {}
- role: demoUser
permission:
columns:
- team_id
- user_id
- role
- id
filter:
user_id:
_eq: x-hasura-user-id
comment: ""
- role: platformAdmin
permission:
columns:
Expand Down Expand Up @@ -2037,6 +2048,24 @@
- team_id
filter: {}
comment: ""
- role: demoUser
permission:
columns:
- id
- external_planning_site_name
- external_planning_site_url
- homepage
- help_email
- help_opening_hours
- help_phone
- email_reply_to_id
- team_id
- boundary_bbox
- submission_email
- reference_code
- boundary_url
filter: {}
comment: ""
- role: platformAdmin
permission:
columns:
Expand Down
4 changes: 2 additions & 2 deletions hasura.planx.uk/tests/team_members.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ describe("team_members", () => {
i = await introspectAs("demoUser");
});

test("cannot query teams", () => {
expect(i.queries).not.toContain("team_members");
test("can query teams", () => {
expect(i.queries).toContain("team_members");
});

test("cannot create, update, or delete team_members", () => {
Expand Down
Loading