Skip to content

Commit

Permalink
Merge pull request #396 from JulianKniephoff/delete-aai-users
Browse files Browse the repository at this point in the history
Enable deleting user references from the admin UI
  • Loading branch information
JulianKniephoff authored May 21, 2024
2 parents 635c448 + a04425b commit f5e91cf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/src/components/users/partials/UsersActionsCell.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ const UsersActionCell = ({
<UserDetailsModal close={hideUserDetails} username={row.username} />
)}

{row.manageable && hasAccess("ROLE_UI_USERS_DELETE", user) && (
<>
{(row.manageable || (row.provider !== "opencast" && row.provider !== "system"))
&& hasAccess("ROLE_UI_USERS_DELETE", user) && <>
<button
onClick={() => setDeleteConfirmation(true)}
className="button-like-anchor remove"
Expand All @@ -76,7 +76,7 @@ const UsersActionCell = ({
/>
)}
</>
)}
}
</>
);
};
Expand Down

0 comments on commit f5e91cf

Please sign in to comment.