Skip to content

Commit

Permalink
Return user.roles instead of allStatusRoles
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrogers committed Jul 13, 2023
1 parent 09bd769 commit f170128
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/providers/user/user-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ export default class UserProvider extends EventEmitter {
}

async getPossibleRoles() {
// returns only status capable roles
const statusRoles = await this.roleStatus.getAllStatusRoles();
const user = await this.getCurrentUser();

return statusRoles;
return user.roles;
}

async hasRole(roleName) {
Expand Down

0 comments on commit f170128

Please sign in to comment.