Skip to content

feat(base10): Return a 403 when trying to saving without access#286

Open
DrRataplan wants to merge 1 commit intomainfrom
feat/document-save-403
Open

feat(base10): Return a 403 when trying to saving without access#286
DrRataplan wants to merge 1 commit intomainfrom
feat/document-save-403

Conversation

@DrRataplan
Copy link
Contributor

Needs a test before merging

@duncdrum
Copy link
Contributor

see #104

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wouldn't it be sufficient to use the sm:has-access function for checking if the current user can write?

let $canWrite := sm:has-access(xs:anyURI($path), "w")

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

Successfully merging this pull request may close these issues.

3 participants