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

Editing an action (and probably others) with capabilities attached loses them #66

Open
jackjansen opened this issue Apr 5, 2019 · 1 comment

Comments

@jackjansen
Copy link
Contributor

Due to the way editing is implemented (replace using PUT, basically) anything namespaced inside the old object is gone forever. This is especially an issue for capabilities.

Best would be to somehow save the capabilities and try to re-insert them in the new instance. At worst the user should be warned about this.

@jackjansen
Copy link
Contributor Author

This is also an issue with the editData plugin (which at least knows that it cannot allow editing of anything with a capability in it).

The second paragraph above would be a very good fix to this problem too.

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