[ISSUE #7102] Making perm equal to 0 is valid

This commit is contained in:
rongtong
2023-08-03 11:39:24 +08:00
committed by GitHub
parent ab61183030
commit c06facf089
@@ -62,7 +62,7 @@ public class PermName {
}
public static boolean isValid(final int perm) {
return perm >= PERM_INHERIT && perm < PERM_PRIORITY;
return perm >= 0 && perm < PERM_PRIORITY;
}
public static boolean isPriority(final int perm) {