Skip to content

Commit adbe9a9

Browse files
committed
Display only directly assigned roles in user modal
Not only assigned but also derived roles were display in the "Roles" tab of the user modal.
1 parent d5e1b99 commit adbe9a9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/shared/wizard/SelectContainer.tsx

+3-2
Original file line numberDiff line numberDiff line change
@@ -252,8 +252,9 @@ const SelectContainer = ({
252252
onChange={(e) => handleChangeRemove(e)}
253253
value={markedForRemoval}
254254
>
255-
{/* @ts-expect-error TS(7006): Parameter 'item' implicitly has an 'any' type. */}
256-
{selectedItems.map((item, key) => (
255+
{/* Show assigned users or directly assigned roles*/}
256+
{/* @ts-expect-error TS(7006): Parameter 'item' implicitly has an 'any' type. */}
257+
{selectedItems.filter((item) => (!'type' in item || item.type !== "DERIVED")).map((item, key) => (
257258
<option key={key} value={item.name}>
258259
{item.name}
259260
</option>

0 commit comments

Comments
 (0)