Skip to content

Commit

Permalink
fix: Remove current project owner from users list
Browse files Browse the repository at this point in the history
  • Loading branch information
annehaley committed Oct 10, 2024
1 parent 5cddada commit 7051ab4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/src/components/AccessControl.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,16 @@ function savePermissions() {
selectedPermissionLevel.value = "follower";
showUserSelectDialog.value = false;
userToRemove.value = undefined;
getUsers().then((data) => {
allUsers.value = data.filter((user) => user.id !== project.owner.id);
});
}
});
}
onMounted(() => {
getUsers().then((data) => {
allUsers.value = data;
allUsers.value = data.filter((user) => user.id !== props.project.owner.id);
});
});
</script>
Expand Down

0 comments on commit 7051ab4

Please sign in to comment.