Skip to content

Commit

Permalink
More lenient permission checking
Browse files Browse the repository at this point in the history
  • Loading branch information
T14D3 committed Jan 2, 2025
1 parent ca994aa commit df36ae3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/t14d3/zones/PermissionManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ public boolean hasPermission(UUID uuid, String permission, String type, Region r
permittedValue = permittedValue.trim(); // Trim whitespace

// Check for wildcard allow
if ("*".equals(permittedValue) || "true".equals(permittedValue)) {
if ("*".equals(permittedValue) || "true".equalsIgnoreCase(permittedValue)) {
explicitAllow = true;
}
// Check for wildcard deny
else if ("! *".equals(permittedValue) || "false".equals(permittedValue)) {
else if ("! *".equals(permittedValue) || "false".equalsIgnoreCase(permittedValue)) {
explicitDeny = true;
}
// Check for specific type allow
Expand Down

0 comments on commit df36ae3

Please sign in to comment.