Skip to content

Commit

Permalink
Refactor delete all for admin user to delete all users and not the wh…
Browse files Browse the repository at this point in the history
…ole config
  • Loading branch information
Carsten Hollmann committed Aug 3, 2021
1 parent 454b5dd commit b1b547c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,13 @@ public void saveAdminUser(AdministratorUser user) {

@Override
public void deleteAll() {
this.configuration().delete();
configuration().writeLock().lock();
try {
getConfiguration().remove(JsonConstants.USERS);
configuration().scheduleWrite();
} finally {
configuration().writeLock().unlock();
}
}


}

0 comments on commit b1b547c

Please sign in to comment.