Skip to content

Commit

Permalink
perf: pam perm
Browse files Browse the repository at this point in the history
  • Loading branch information
feng626 committed Jan 20, 2025
1 parent 90050bf commit 2612598
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/router/pam/security.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default [
app: 'accounts',
name: 'BaseAccountRisk',
icon: 'scan',
resource: 'accountcheckautomation'
resource: 'checkaccountautomation'
},
children: [
{
Expand Down
4 changes: 2 additions & 2 deletions src/views/pam/RiskDetect/AccountCheckTaskList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default {
type: 'primary',
name: 'execute',
can: ({ row }) => {
return row.is_active && vm.$hasPerm('accounts.add_accountcheckautomation')
return row.is_active && vm.$hasPerm('accounts.add_checkaccountautomation')
},
callback: function({ row }) {
this.$axios.post(
Expand All @@ -139,7 +139,7 @@ export default {
hasExport: false,
hasImport: false,
createRoute: 'AccountCheckCreateUpdate',
canCreate: vm.$hasPerm('accounts.add_accountcheckautomation')
canCreate: vm.$hasPerm('accounts.add_checkaccountautomation')
}
}
}
Expand Down

0 comments on commit 2612598

Please sign in to comment.