hotfix permissions
This commit is contained in:
parent
2bac10502d
commit
4bb32dc407
@ -442,6 +442,10 @@ public class PermissionManager implements UserDataProvider {
|
|||||||
permission.setStarts(null);
|
permission.setStarts(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (permission.getExpires().isBefore(Instant.now())) {
|
||||||
|
permission.setExpires(Instant.now());
|
||||||
|
}
|
||||||
|
|
||||||
permission.setExpires(InstantHelper.plus(permission.getExpires(), permissionMapping.getLifetime(),
|
permission.setExpires(InstantHelper.plus(permission.getExpires(), permissionMapping.getLifetime(),
|
||||||
permissionMapping.getLifetimeUnit()));
|
permissionMapping.getLifetimeUnit()));
|
||||||
}
|
}
|
||||||
|
2
pom.xml
2
pom.xml
@ -14,7 +14,7 @@
|
|||||||
<java.version>17</java.version>
|
<java.version>17</java.version>
|
||||||
<querydsl.version>5.0.0</querydsl.version>
|
<querydsl.version>5.0.0</querydsl.version>
|
||||||
<nimbus.version>9.37.3</nimbus.version>
|
<nimbus.version>9.37.3</nimbus.version>
|
||||||
<revision>3.0.4-SNAPSHOT</revision>
|
<revision>3.0.5-SNAPSHOT</revision>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
|
Loading…
Reference in New Issue
Block a user