Skip to content

Commit bfcacbf

Browse files
committed
Fixup ui bug
1 parent ac1c629 commit bfcacbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/config/section/kms.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default {
2222
name: 'kms',
2323
title: 'label.kms',
2424
icon: 'hdd-outlined',
25-
show: (record, store) => {
25+
show: () => {
2626
return ['Admin'].includes(store.getters.userInfo.roletype) || store.getters.features.hashsmprofiles
2727
},
2828
children: [
@@ -160,7 +160,7 @@ export default {
160160
title: 'label.hsm.profile',
161161
icon: 'safety-outlined',
162162
permission: ['listHSMProfiles'],
163-
show: (record, route, user) => { return ['Admin'].includes(user.roletype) },
163+
show: () => { return ['Admin'].includes(store.getters.userInfo.roletype) },
164164
resourceType: 'HSMProfile',
165165
columns: () => {
166166
const fields = ['name', 'enabled']

0 commit comments

Comments
 (0)