[Fix] PrivilegeRemoveUserCommand refreshes sessions, and not invalidates its own session

This commit is contained in:
Robert von Burg 2023-10-05 15:51:48 +02:00
parent 5e7f5c88be
commit f2f5a4481e
Signed by: eitch
GPG Key ID: 75DB9C85C74331F7
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ public class PrivilegeRemoveUserCommand extends Command {
if (privilegeHandler.isPersistOnUserDataChanged())
privilegeHandler.persist(tx().getCertificate());
getComponent(StrolchSessionHandler.class).invalidate(tx().getCertificate());
getComponent(StrolchSessionHandler.class).refreshSessions();
Audit audit = tx().auditFrom(AccessType.DELETE, PRIVILEGE, USER, this.username);
tx().getAuditTrail().add(tx(), audit);