From 291454f3d24523495baec8790def77fdcf6233a7 Mon Sep 17 00:00:00 2001 From: _Bastler Date: Tue, 2 Jan 2024 16:27:54 +0100 Subject: [PATCH] hotfix permissions --- .../java/de/bstly/we/businesslogic/PermissionManager.java | 7 +++++++ 1 file changed, 7 insertions(+) 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 9e1fe3f..7ed0f26 100755 --- a/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java +++ b/core/src/main/java/de/bstly/we/businesslogic/PermissionManager.java @@ -8,6 +8,8 @@ import java.time.OffsetDateTime; import java.time.format.DateTimeFormatter; import java.util.List; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Sort; import org.springframework.stereotype.Component; @@ -31,6 +33,8 @@ import de.bstly.we.repository.PermissionRepository; @Component public class PermissionManager implements UserDataProvider { + private Logger logger = LoggerFactory.getLogger(PermissionManager.class); + @Autowired private PermissionRepository permissionRepository; @Autowired @@ -455,6 +459,9 @@ public class PermissionManager implements UserDataProvider { InstantHelper.truncate(permission.getExpires(), permissionMapping.getLifetimeUnit())); } + logger.debug("Permission: \n" + permission.getName() + "\n" + permission.getId() + "\n" + + permission.getTarget() + "\n" + permission.getStarts() + "\n" + permission.getExpires()); + permissions.add(permission); } }