From 22740f5903f0c2ac66e400c6a56813b98a503c95 Mon Sep 17 00:00:00 2001 From: _Bastler Date: Tue, 2 Jan 2024 16:31:35 +0100 Subject: [PATCH] hotfix permissions --- .../main/java/de/bstly/we/businesslogic/PermissionManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java b/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java index 7ed0f26..1918a36 100755 --- a/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java +++ b/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java @@ -441,8 +441,9 @@ public class PermissionManager implements UserDataProvider { permission.setAddon(permissionMapping.isAddon()); permission.setStarts(permissionStarts); permission.setExpires(permissionsExpires); + logger.debug("expires here: " + permission.getExpires()); } else { - if (permission.getExpires().isBefore(Instant.now())) { + if (permission.getExpires() == null || permission.getExpires().isBefore(Instant.now())) { permission.setExpires(Instant.now()); }