hotfix permissions

This commit is contained in:
_Bastler 2024-01-02 16:18:09 +01:00
parent 2bac10502d
commit 4bb32dc407
2 changed files with 5 additions and 1 deletions

View File

@ -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()));
}

View File

@ -14,7 +14,7 @@
<java.version>17</java.version>
<querydsl.version>5.0.0</querydsl.version>
<nimbus.version>9.37.3</nimbus.version>
<revision>3.0.4-SNAPSHOT</revision>
<revision>3.0.5-SNAPSHOT</revision>
</properties>
<parent>