hotfix permissions

This commit is contained in:
_Bastler 2024-01-02 16:35:09 +01:00
parent 22740f5903
commit ebe0d67780

View File

@ -441,7 +441,8 @@ 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()); logger.debug("now: " + Instant.now() + "\nstart: " + permissionStarts + "\nexpires here: "
+ permission.getExpires());
} else { } else {
if (permission.getExpires() == null || permission.getExpires().isBefore(Instant.now())) { if (permission.getExpires() == null || permission.getExpires().isBefore(Instant.now())) {
permission.setExpires(Instant.now()); permission.setExpires(Instant.now());