fix permissions
This commit is contained in:
parent
e20266f147
commit
dfab9d09c3
@ -418,8 +418,8 @@ public class PermissionManager implements UserDataProvider {
|
||||
for (Permission existingPermission : existingPermissions) {
|
||||
if (existingPermission.getExpires().isBefore(permissionsExpires)) {
|
||||
if (starts != null) {
|
||||
if (existingPermission.getStarts() == null
|
||||
|| existingPermission.getStarts().isAfter(starts)) {
|
||||
if (existingPermission.getStarts() == null || existingPermission.getStarts().isAfter(starts)
|
||||
|| existingPermission.getExpires().isAfter(starts)) {
|
||||
permission = existingPermission;
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user