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

Enforce permissions on API endpoints #12

Open
moacode opened this issue Dec 8, 2020 · 2 comments
Open

Enforce permissions on API endpoints #12

moacode opened this issue Dec 8, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@moacode
Copy link

moacode commented Dec 8, 2020

We need to add permissions to each API endpoint to ensure these can't be accessed from unauthorized users (as then they'd be able to change pricing etc.).

Take a look at how Craft Commerce secures their controllers for reference.

@moacode
Copy link
Author

moacode commented Dec 8, 2020

Estimate: 3–5 hours.

@moacode moacode added the enhancement New feature or request label Dec 8, 2020
@moacode
Copy link
Author

moacode commented Dec 9, 2020

You wanna use this method if possible. I doubt the Yii rest controller I'm using has this method but it's only a couple of lines so it's probably easier to copy/paste.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant