Skip to content

Commit

Permalink
fix: check for workbench-dev role in addition to group (#28)
Browse files Browse the repository at this point in the history
  • Loading branch information
bodom0015 authored Jan 17, 2024
1 parent aab4de9 commit 95df3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/views/my-apps/MyApps.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ function MyAppsPage(props: any) {
<Col xs={3} style={{ textAlign: "right", marginTop: "10px" }}>
<Button variant="link" onClick={() => confirmDelete(stack)} style={{ color: darkThemeEnabled && stack.status === 'stopped' ? 'white' : 'black' }} title={'Remove application (' + stack.id + ')'}><FontAwesomeIcon icon={faTrash} /></Button>
{
user?.groups?.includes('/workbench-developers') && <Button variant="link" onClick={() => editStack(stack)}
(user?.groups?.includes('role:workbench-dev') || user?.groups?.includes('/workbench-developers')) && <Button variant="link" onClick={() => editStack(stack)}
style={{color: darkThemeEnabled && stack.status === 'stopped' ? 'white' : 'black'}}
title={'Edit application (' + stack.id + ')'}><FontAwesomeIcon
icon={faEdit}/></Button>
Expand Down

0 comments on commit 95df3f6

Please sign in to comment.