Skip to content

Commit

Permalink
fix(admin-ui): user delete permission fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
mjatin-dev committed Nov 15, 2022
1 parent 2ac9a62 commit 1be3cf1
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ import applicationStyle from '../../../../app/routes/Apps/Gluu/styles/applicatio
import { useNavigate } from 'react-router-dom'
import {
hasPermission,
ROLE_DELETE,
ROLE_READ,
ROLE_WRITE,
USER_READ,
USER_DELETE,
} from '../../../../app/utils/PermChecker'
import GluuAdvancedSearch from 'Routes/Apps/Gluu/GluuAdvancedSearch'
import GluuCommitDialog from '../../../../app/routes/Apps/Gluu/GluuCommitDialog'
Expand Down Expand Up @@ -146,7 +145,7 @@ function UserList(props) {
disabled: !hasPermission(permissions, ROLE_WRITE),
}))
}
if (hasPermission(permissions, ROLE_DELETE)) {
if (hasPermission(permissions, USER_DELETE)) {
myActions.push((rowData) => ({
icon: () => <DeleteOutlined />,
iconProps: {
Expand Down

0 comments on commit 1be3cf1

Please sign in to comment.