File tree 1 file changed +2
-3
lines changed
admin-ui/plugins/user-management/components/UserManagement
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,9 @@ import applicationStyle from '../../../../app/routes/Apps/Gluu/styles/applicatio
18
18
import { useNavigate } from 'react-router-dom'
19
19
import {
20
20
hasPermission ,
21
- ROLE_DELETE ,
22
- ROLE_READ ,
23
21
ROLE_WRITE ,
24
22
USER_READ ,
23
+ USER_DELETE ,
25
24
} from '../../../../app/utils/PermChecker'
26
25
import GluuAdvancedSearch from 'Routes/Apps/Gluu/GluuAdvancedSearch'
27
26
import GluuCommitDialog from '../../../../app/routes/Apps/Gluu/GluuCommitDialog'
@@ -146,7 +145,7 @@ function UserList(props) {
146
145
disabled : ! hasPermission ( permissions , ROLE_WRITE ) ,
147
146
} ) )
148
147
}
149
- if ( hasPermission ( permissions , ROLE_DELETE ) ) {
148
+ if ( hasPermission ( permissions , USER_DELETE ) ) {
150
149
myActions . push ( ( rowData ) => ( {
151
150
icon : ( ) => < DeleteOutlined /> ,
152
151
iconProps : {
You can’t perform that action at this time.
0 commit comments