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

Admin user can't save updates #66

Open
Roger-Heathcote opened this issue Apr 24, 2020 · 0 comments
Open

Admin user can't save updates #66

Roger-Heathcote opened this issue Apr 24, 2020 · 0 comments

Comments

@Roger-Heathcote
Copy link
Contributor

Roger-Heathcote commented Apr 24, 2020

Normal users can edit their posts but admin user can't edit someone elses posts.

Pro just need to change line in examples-model.js so it also allows if userid is 1

    if (dbExample.owner_id === userId) {
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

No branches or pull requests

1 participant