Fix backup dropdown permissions (#3469)

This commit is contained in:
Linux123123 2021-07-17 20:02:37 +03:00 committed by GitHub
parent 57987c0f79
commit 2c2c35303a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -81,7 +81,7 @@ export default ({ backup, className }: Props) => {
</p>
<p css={tw`text-2xs text-neutral-500 uppercase mt-1`}>Created</p>
</div>
<Can action={'backup.download'}>
<Can action={[ 'backup.download', 'backup.restore', 'backup.delete' ]} matchAny>
<div css={tw`mt-4 md:mt-0 ml-6`} style={{ marginRight: '-0.5rem' }}>
{!backup.completedAt ?
<div css={tw`p-2 invisible`}>