hotfix permissions
This commit is contained in:
parent
2bac10502d
commit
4bb32dc407
@ -442,6 +442,10 @@ public class PermissionManager implements UserDataProvider {
|
||||
permission.setStarts(null);
|
||||
}
|
||||
|
||||
if (permission.getExpires().isBefore(Instant.now())) {
|
||||
permission.setExpires(Instant.now());
|
||||
}
|
||||
|
||||
permission.setExpires(InstantHelper.plus(permission.getExpires(), permissionMapping.getLifetime(),
|
||||
permissionMapping.getLifetimeUnit()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user