Skip to content

Commit

Permalink
Align permissions of tag views with API server (#149)
Browse files Browse the repository at this point in the history
  • Loading branch information
nscuro authored Sep 30, 2024
1 parent c93d1c8 commit 08bea56
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/views/portfolio/tags/TaggedNotificationRuleListModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,10 @@ export default {
const interval = setInterval(() => {
if (this.$refs.table) {
this.$refs.table.refreshOptions({
showBtnDeleteSelected: this.isPermitted(
showBtnDeleteSelected: this.isPermitted([
this.PERMISSIONS.SYSTEM_CONFIGURATION,
),
this.PERMISSIONS.SYSTEM_CONFIGURATION_UPDATE,
]),
});
clearInterval(interval);
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/portfolio/tags/TaggedPoliciesListModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default {
this.$refs.table.refreshOptions({
showBtnDeleteSelected: this.isPermitted([
this.PERMISSIONS.POLICY_MANAGEMENT,
this.PERMISSIONS.POLICY_MANAGEMENT_DELETE,
this.PERMISSIONS.POLICY_MANAGEMENT_UPDATE,
]),
});
clearInterval(interval);
Expand Down

0 comments on commit 08bea56

Please sign in to comment.