Skip to content
Open
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
15 changes: 15 additions & 0 deletions src/routes/docs/tutorials/vue/step-6/+page.markdoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,21 @@ Create a new table with the following columns:
| title | Varchar | Yes |
| description | Text | No |

## Configure permissions {% #configure-permissions %}
{% only_dark %}
![Table permissions screen](/images/docs/tutorials/dark/idea-tracker-permissions.avif)
{% /only_dark %}
{% only_light %}
![Table permissions screen](/images/docs/tutorials/idea-tracker-permissions.avif)
{% /only_light %}

Navigate to the **Settings** tab of your table, add the role **Any** and check the **Read** box.
Next, add a **Users** role and give them access to **Create** by checking those boxes.
These permissions apply to all rows in your new table.

Finally, enable **Row security** to allow further permissions to be set at the row level.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Row security breaks deletion

When a signed-in user creates an idea and clicks its owner-only Remove button, row security is enabled but createRow assigns no row-level delete permission, causing deleteRow to return an authorization error.

Prompt To Fix With AI
This is a comment left during a code review.
Path: src/routes/docs/tutorials/vue/step-6/+page.markdoc
Line: 36

Comment:
**Row security breaks deletion**

When a signed-in user creates an idea and clicks its owner-only Remove button, row security is enabled but `createRow` assigns no row-level delete permission, causing `deleteRow` to return an authorization error.

---

For each issue above, determine whether it is valid and should be fixed. If so, fix it directly.

Fix in Claude Code Fix in Codex

Remember to click the **Update** button to apply your changes.

## Ideas context {% #ideas-context %}

Now that you have a table to hold ideas, we can read and write to it from our app. Like we did with the user data, we will create a store hold our ideas.
Expand Down