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