Skip to content

Require products.write for product writes - #317

Open
kaareal wants to merge 2 commits into
masterfrom
security/product-write-permission
Open

kaareal wants to merge 2 commits into
masterfrom
security/product-write-permission

Conversation

@kaareal

@kaareal kaareal commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Split from #302.

The products routes only called authenticate(), so any user could create, change or delete any product. POST, PATCH and DELETE now require products.write. OpenAPI updated with the x-permissions.

@github-actions

Copy link
Copy Markdown

API Changes

Operations

  • Changed POST /1/products
    • Added x-permissions
  • Changed PATCH /1/products/:id
    • Added x-permissions
  • Changed DELETE /1/products/:id
    • Added x-permissions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant