Skip to content

Commit

Permalink
[RA] - Removed need to be staff to logout user
Browse files Browse the repository at this point in the history
  • Loading branch information
marcus-oscarsson committed Feb 5, 2025
1 parent 119c3d9 commit affbf78
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions ui/src/components/RemoteAccess/UserList.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,13 @@ function UserList() {
>
Give control
</Button>
{user.isstaff && (
<Button
size="sm"
variant="outline-secondary"
onClick={() => dispatch(logoutUser(observer.username))}
>
Logout
</Button>
)}
<Button
size="sm"
variant="outline-secondary"
onClick={() => dispatch(logoutUser(observer.username))}
>
Logout
</Button>
</Col>
)}
</Row>
Expand Down

0 comments on commit affbf78

Please sign in to comment.