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

CRISTAL-257: The edit button is presented even if the current user does not have edit rights #540

Merged
merged 4 commits into from
Dec 23, 2024

Conversation

pjeanjean
Copy link
Contributor

Jira URL

https://jira.xwiki.org/browse/CRISTAL-257

Changes

Description

  • Store whether or not the current user can edit the returned page.
  • Hide the page actions if not.
  • Show error on failed save.

Clarifications

The changes in this PR are only related to the XWiki backend.

Screenshots & Video

image

Executed Tests

The test suite was run fully, and the new feature was tested with multiple rights combinations.

Expected merging strategy

  • Prefers squash: Yes
  • Backport on branches:
    • N/A

…es not have edit rights

* Hide edit button when edition is disabled
* Improve comments
…es not have edit rights

* Add missing comment
@manuelleduc manuelleduc merged commit 3668cf9 into main Dec 23, 2024
4 checks passed
@manuelleduc manuelleduc deleted the CRISTAL-257 branch December 23, 2024 14:40
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.

2 participants