-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Enhancement: Prevent multiple users editing the same post #3795
Comments
why can 2 users edit the same post? in normally, only author can edit the post |
We have experienced that anyone with access to keystone can edit a post regardless of who the author is. We had two different users editing the same post at the same time on their own respective computers.User 1 saved and their changes were saved. User 2 saved last and their changes overwrote what user 1 just did. Have you experienced different with 2 users trying to edit a post at the same time? |
it is not easy to handle~ |
I am sure it is not easy, that is simply why I posed this as a possible enhancement feature to the team. |
I think this will be possible when dynamic permissions support (see keystonejs/keystone-test-project#21) is in. |
There are two issues here. First, do all users have edit rights, and second, if one person has a post open, no person on another computer can edit it. The first is solved by us adding a permissions scheme. There is an existing issue/discussion around this. If what you are after is the second, that's a complex piece of architecture (multi-client state shared with server with a notion of checking something out), which we are not looking to build into the core of keystone. Closing this issue in favor of existing permissions discussion. |
Steps to reproduce the behavior
Have two users on the same post page editing the post. Have one user make changes and save and then have the second user save their changes. User 1's changes are now gone.
Expected behavior
If two users are in the same post, only the first user can have access to edit it
Actual behavior
The text was updated successfully, but these errors were encountered: