hotfix permissions

This commit is contained in:
_Bastler 2024-01-02 16:31:35 +01:00
parent 291454f3d2
commit 22740f5903

View File

@ -441,8 +441,9 @@ public class PermissionManager implements UserDataProvider {
permission.setAddon(permissionMapping.isAddon()); permission.setAddon(permissionMapping.isAddon());
permission.setStarts(permissionStarts); permission.setStarts(permissionStarts);
permission.setExpires(permissionsExpires); permission.setExpires(permissionsExpires);
logger.debug("expires here: " + permission.getExpires());
} else { } else {
if (permission.getExpires().isBefore(Instant.now())) { if (permission.getExpires() == null || permission.getExpires().isBefore(Instant.now())) {
permission.setExpires(Instant.now()); permission.setExpires(Instant.now());
} }