Skip to content

Commit

Permalink
feat: Add ability to clear user abilities cache (closes #888)
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Jun 24, 2024
1 parent 6c6aa51 commit 3f0d585
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/api/services/authorisations/authorisations.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,9 @@ export default {
async updateAbilities (subject) {
if (this.cache) {
if (subject && subject._id) {
this.cache.del(subject._id.toString())
this.cache.delete(subject._id.toString())
} else {
this.cache.del(ANONYMOUS_USER)
this.cache.delete(ANONYMOUS_USER)
}
}

Expand Down

0 comments on commit 3f0d585

Please sign in to comment.