Skip to content

Commit

Permalink
Merge pull request #334 from akhenry/mct6555
Browse files Browse the repository at this point in the history
Add getPossibleRoles to user-provider
  • Loading branch information
akhenry authored Jul 14, 2023
2 parents b4e6755 + f170128 commit 0117add
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/providers/user/user-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ export default class UserProvider extends EventEmitter {
return statusRoles.includes(role);
}

async getPossibleRoles() {
const user = await this.getCurrentUser();

return user.roles;
}

async hasRole(roleName) {
const user = await this.getCurrentUser();

Expand Down

0 comments on commit 0117add

Please sign in to comment.