mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-01 15:47:01 +08:00
[ISSUE #7102] Making perm equal to 0 is valid
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user