[go: nahoru, domu]

Skip to content

Commit

Permalink
ui: block actions when the role is same
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo R.S. Joao <leonardo.joao@ossystems.com.br>
  • Loading branch information
leonardojoao authored and gustavosbarreto committed Feb 4, 2022
1 parent c419baa commit 89ec8b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/namespace/NamespaceMemberDelete.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export default {
return hasPermission(
this.$authorizer.role[role],
this.$actions.namespace[this.action],
);
) && this.member.role !== role;
}
return false;
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/namespace/NamespaceMemberFormDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ export default {
return hasPermission(
this.$authorizer.role[role],
this.$actions.namespace[action],
);
) && this.member.role !== role;
}
return false;
Expand Down

0 comments on commit 89ec8b7

Please sign in to comment.