Skip to content

Commit

Permalink
Merge pull request #101 from harvester/mergify/bp/release-harvester-v…
Browse files Browse the repository at this point in the history
…1.5/pr-83

fix: cluster member role user should not be able to delete node on Harvester Hosts page (backport #83)
  • Loading branch information
houhoucoop authored Jan 21, 2025
2 parents 752cf2e + 713173b commit f59c81d
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 f59c81d

Please sign in to comment.