hotfix permissions
This commit is contained in:
parent
b282131c4d
commit
291454f3d2
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user