Skip to content

Commit

Permalink
Merge pull request #83 from houhoucoop/issue-7081
Browse files Browse the repository at this point in the history
fix: cluster member role user should not be able to delete node on Harvester Hosts page
  • Loading branch information
houhoucoop authored Jan 21, 2025
2 parents cb4cdcb + e95955f commit 69e639f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/harvester/models/harvester/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ export default class HciNode extends HarvesterResource {
get canDelete() {
const nodes = this.$rootGetters['harvester/all'](NODE) || [];

return nodes.length > 1;
return nodes.length > 1 && super.canDelete;
}

get vlanStatuses() {
Expand Down

0 comments on commit 69e639f

Please sign in to comment.