Skip to content

Commit 4a365ea

Browse files
committed
fix: Don’t let people delete or edit their own role
1 parent 7b48038 commit 4a365ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/features/organization/roles/modals/EditOrganizationRoleModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ export function EditOrganizationRoleModal({
246246
defaultValue={updatedPermissions}
247247
/>
248248
</div>
249-
{(remove || update) && (<DialogFooter className="col-span-2">
249+
{(!isSelf && (remove || update)) && (<DialogFooter className="col-span-2">
250250
<div className="flex justify-between w-full">
251251
{remove && (<Button
252252
type="button"

0 commit comments

Comments
 (0)