-
-
Notifications
You must be signed in to change notification settings - Fork 560
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
XWIKI-22815: Variable $isSuperAdmin is not computed correctly on subwikis #3877
Merged
Conversation
This file contains 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
tmortagne
reviewed
Feb 6, 2025
...re/xwiki-platform-web/xwiki-platform-web-templates/src/main/resources/templates/xwikivars.vm
Outdated
Show resolved
Hide resolved
84b7b22
to
02a163c
Compare
manuelleduc
commented
Feb 27, 2025
...y-authorization-api/src/main/java/org/xwiki/security/authorization/AuthorizationManager.java
Outdated
Show resolved
Hide resolved
tmortagne
reviewed
Feb 27, 2025
...rc/main/java/org/xwiki/security/authorization/script/SecurityAuthorizationScriptService.java
Outdated
Show resolved
Hide resolved
The current PR is ok for the reported issue, but does not fix the inconsistency/duplication issue (yet) |
tmortagne
approved these changes
Feb 27, 2025
I created https://jira.xwiki.org/browse/XWIKI-22942 for the remaining isSuperAdmin checks |
💚 All backports created successfully
Questions ?Please refer to the Backport tool documentation and see the Github Action logs for details |
Sereza7
pushed a commit
to Sereza7/xwiki-platform
that referenced
this pull request
Mar 21, 2025
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.
Jira URL
https://jira.xwiki.org/browse/XWIKI-22815
Changes
Description
$isSuperAdmin
to make it work on sub-wikis.Duplicated/inconsistent definitions of
isSuperAdmin
:Clarifications
Screenshots & Video
N/A
Executed Tests
xwiki-platform-web-templates
$isAdvancedUser || $isSuperAdmin
in at least 16 places, but afaiu$isSuperAdmin
implies$isAdvancedUser
, making the right hand side of the OR condition superfluousExpected merging strategy