From 944d868ed765be05a700d3eae8c0b4213d7574c2 Mon Sep 17 00:00:00 2001 From: glespinosa Date: Mon, 22 May 2023 19:12:24 +0800 Subject: [PATCH] fix(remove owner option in user inv): remove owner option in user inv remove owner option in user inv --- src/views/accounts/instances/Users.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/views/accounts/instances/Users.js b/src/views/accounts/instances/Users.js index 1a5729b6e..56570d61a 100644 --- a/src/views/accounts/instances/Users.js +++ b/src/views/accounts/instances/Users.js @@ -322,7 +322,11 @@ const Index = ({ color="primary" variant="contained" onClick={() => - handleInviteUserModal(createInvite, baseroles, instanceZUID) + handleInviteUserModal( + createInvite, + baseroles.filter((c) => c.value !== 'owner'), + instanceZUID, + ) } startIcon={} >