Repository navigation
fix: keep extensions, transfers and emptying the trash to the person - #28
Merged
Merged
Conversation
…gned-in person Window commands in the extensions. and transfer. families, and every trash. command except opening the trash and restoring from it, are now refused for API tokens, OAuth grants and form-md cli scripts, and are no longer listed or described to them. The refusal says the command works only for the person signed in to the window.
…rson Commands an extension contributes (ext.<extension id>.<command id>) run the same code as extensions.run, so they are now person-only as well and are no longer listed or described to API tokens, OAuth grants or form-md cli scripts.
DELETE /api/pages/{id}/forever and DELETE /api/workspaces/{id}/trash now need a signed-in browser or the desktop app; an API token or OAuth grant gets session_only. Moving a page to the trash and restoring it still work with a token.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests
How to ship