Skip to content

Commit

Permalink
fix: add manager_user and list_user permissions to display user manag…
Browse files Browse the repository at this point in the history
…er tab (Greenstand#281)
  • Loading branch information
tranquanghuy0801 authored Jan 22, 2022
1 parent 14e773b commit be8ff32
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/context/AppContext.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,11 @@ function getRoutes(user) {
linkTo: '/user-manager',
component: Users,
icon: IconGroup,
disabled: !hasPermission(user, [POLICIES.SUPER_PERMISSION]),
disabled: !hasPermission(user, [
POLICIES.SUPER_PERMISSION,
POLICIES.LIST_USER,
POLICIES.MANAGER_USER,
]),
},
{
name: 'Account',
Expand Down

0 comments on commit be8ff32

Please sign in to comment.