fix permissions

This commit is contained in:
_Bastler 2023-01-02 08:24:06 +01:00
parent e20266f147
commit dfab9d09c3
2 changed files with 3 additions and 3 deletions

View File

@ -418,8 +418,8 @@ public class PermissionManager implements UserDataProvider {
for (Permission existingPermission : existingPermissions) { for (Permission existingPermission : existingPermissions) {
if (existingPermission.getExpires().isBefore(permissionsExpires)) { if (existingPermission.getExpires().isBefore(permissionsExpires)) {
if (starts != null) { if (starts != null) {
if (existingPermission.getStarts() == null if (existingPermission.getStarts() == null || existingPermission.getStarts().isAfter(starts)
|| existingPermission.getStarts().isAfter(starts)) { || existingPermission.getExpires().isAfter(starts)) {
permission = existingPermission; permission = existingPermission;
break; break;
} }

View File

@ -13,7 +13,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>11</java.version> <java.version>11</java.version>
<log4j2.version>2.19.0</log4j2.version> <log4j2.version>2.19.0</log4j2.version>
<revision>2.0.4-SNAPSHOT</revision> <revision>2.0.5-SNAPSHOT</revision>
</properties> </properties>
<parent> <parent>