Skip to content

Commit

Permalink
fix role check
Browse files Browse the repository at this point in the history
  • Loading branch information
djayanna committed Nov 2, 2022
1 parent 9b4fcd5 commit f9d8c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WorkerskillsPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class WorkerskillsPlugin extends FlexPlugin {
{
const { roles } = manager.user;
// by default, skills management are enabled for admin roles
return false// roles.indexOf("admin") == 0;
return roles.indexOf("admin") == 0;
}

/**
Expand Down

0 comments on commit f9d8c17

Please sign in to comment.