PermissionRange: Interpret allowMin > allowMax as disallow
Set min and max to 0 if min > max. Bug: Issue 11059 Change-Id: I492ef61322dfb82273dc1ed1fe6ae86640541f11
This commit is contained in:
@@ -70,8 +70,8 @@ public class PermissionRange implements Comparable<PermissionRange> {
|
||||
this.min = min;
|
||||
this.max = max;
|
||||
} else {
|
||||
this.min = max;
|
||||
this.max = min;
|
||||
this.min = 0;
|
||||
this.max = 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user