-
-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
XWIKI-22679: Required rights don't restrict edit rights
* Add back the check for edit right. * Add an integration test that verifies that required rights restrict edit right.
- Loading branch information
Showing
4 changed files
with
135 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
43 changes: 43 additions & 0 deletions
43
...xwiki-platform-security-authorization-api/src/test/resources/testwikis/requiredRights.xml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?xml version="1.0" ?> | ||
<!-- Used by DefaultAuthorizationManagerIntegrationTest#requiredRights() --> | ||
<wikis> | ||
<wiki name="MainWiki" mainWiki="true"> | ||
<user name="scriptUser"/> | ||
<user name="wikiAdminUser"/> | ||
<user name="spaceAdminUser"/> | ||
<user name="programmingUser"/> | ||
<user name="viewUser"/> | ||
<user name="editUser"/> | ||
<allowUser type="edit" name="editUser"/> | ||
<allowUser type="edit" name="scriptUser"/> | ||
<allowUser type="script" name="scriptUser"/> | ||
<allowUser type="admin" name="wikiAdminUser"/> | ||
<allowUser type="programming" name="programmingUser"/> | ||
<space name="space"> | ||
<allowUser type="admin" name="spaceAdminUser"/> | ||
<document name="simpleDocument"/> | ||
<document name="enforcedDocument" enforceRequiredRights="true"/> | ||
<document name="scriptDocument" enforceRequiredRights="true"> | ||
<requiredRight type="script"/> | ||
</document> | ||
<document name="adminDocument" enforceRequiredRights="true"> | ||
<requiredRight type="admin" scope="wiki"/> | ||
</document> | ||
<document name="programmingDocument" enforceRequiredRights="true"> | ||
<requiredRight type="programming" scope="farm"/> | ||
</document> | ||
<document name="fakeProgrammingDocument"> | ||
<requiredRight type="programming" scope="farm"/> | ||
</document> | ||
</space> | ||
</wiki> | ||
<wiki name="SubWiki"> | ||
<user name="subWikiAdmin"/> | ||
<allowUser type="admin" name="subWikiAdmin"/> | ||
<space name="subWikiSpace"> | ||
<document name="adminDocument" enforceRequiredRights="true"> | ||
<requiredRight type="admin" scope="wiki"/> | ||
</document> | ||
</space> | ||
</wiki> | ||
</wikis> |