Skip to content

Commit

Permalink
fix: Impossible to access weacast services (closes #258)
Browse files Browse the repository at this point in the history
  • Loading branch information
claustres committed Jun 24, 2024
1 parent 8c2468d commit 23cbf2a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions api/src/services.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ export default async function () {
can('read', name)
if (name === 'probes') can('create', name)
})
// We then need to update abilities cache
const authorisationService = app.getService('authorisations')
if (authorisationService) authorisationService.clearAbilities()
}
})
await app.configure(kCore)
Expand Down

0 comments on commit 23cbf2a

Please sign in to comment.