mirror of
https://github.com/apache/lucene.git
synced 2025-03-01 05:49:33 +00:00
Prior to this commit, RuleBasedAuthorizationPlugin would check for the predefined 'ALL' permission only when the endpoint being hit wasn't associated with another predefined-permission. This resulted in some very unintuitive behavior. For example, the permission {name:all, role:admin} would correctly prevent a role:foo user from accessing /admin/info/properties, but would allow write access to /admin/authorization because of the SECURITY_EDIT predefined perm associated with that endpoint. This commit fixes this bug so that the 'all' permission is always consulted whether or not the endpoint is associated with other predefined permissions.