Fix allocation permission
This commit is contained in:
parent
2d19c12a5a
commit
74e90e087f
2 changed files with 6 additions and 2 deletions
|
@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa
|
||||||
|
|
||||||
This project follows [Semantic Versioning](http://semver.org) guidelines.
|
This project follows [Semantic Versioning](http://semver.org) guidelines.
|
||||||
|
|
||||||
|
## v1.1.1
|
||||||
|
### Fixed
|
||||||
|
* Fixes allocation permissions checking on the frontend checking the wrong permission therefore leading to the item never showing up.
|
||||||
|
|
||||||
## v1.1.0
|
## v1.1.0
|
||||||
This release **requires** `Wings@1.1.0` in order to work properly due to breaking internal API changes.
|
This release **requires** `Wings@1.1.0` in order to work properly due to breaking internal API changes.
|
||||||
|
|
||||||
|
|
|
@ -89,10 +89,10 @@ const AllocationRow = ({ allocation }: Props) => {
|
||||||
<span css={tw`bg-green-500 py-1 px-2 rounded text-green-50 text-xs`}>Primary</span>
|
<span css={tw`bg-green-500 py-1 px-2 rounded text-green-50 text-xs`}>Primary</span>
|
||||||
:
|
:
|
||||||
<>
|
<>
|
||||||
<Can action={'allocations.delete'}>
|
<Can action={'allocation.delete'}>
|
||||||
<DeleteAllocationButton allocation={allocation.id}/>
|
<DeleteAllocationButton allocation={allocation.id}/>
|
||||||
</Can>
|
</Can>
|
||||||
<Can action={'allocations.update'}>
|
<Can action={'allocation.update'}>
|
||||||
<Button
|
<Button
|
||||||
isSecondary
|
isSecondary
|
||||||
size={'xsmall'}
|
size={'xsmall'}
|
||||||
|
|
Loading…
Reference in a new issue