We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Once #185 and #203 have both been merged, call the hasGardenPermission function from #203 in the new GardenAdminCard.tsx file from #185 as follows:
hasGardenPermission
<CardActions> {hasGardenPermission('garden:update') && ( <Button variant="contained" color="secondary" component={RouterLink} to={'/admin/gardens/' + garden.name} sx={{ width: 0.75, mr: 1 }} > Edit configurations </Button> )} {garden.connection_type !== 'LOCAL' && hasGardenPermission('garden:delete') && ( <> <Button variant="contained" color="error" onClick={() => setOpen(true)} > Delete </Button> <Modal ... </Modal> </> ) } </CardActions>
The text was updated successfully, but these errors were encountered:
beer-garden#204 - garden admin button permissions
41030c0
#204 - garden admin button permissions (#237)
b20b396
obr42
Successfully merging a pull request may close this issue.
Once #185 and #203 have both been merged, call the
hasGardenPermission
function from #203 in the new GardenAdminCard.tsx file from #185 as follows:The text was updated successfully, but these errors were encountered: