Skip to content

Commit 74e90e0

Browse files
committed
Fix allocation permission
1 parent 2d19c12 commit 74e90e0

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ This file is a running track of new features and fixes to each version of the pa
33

44
This project follows [Semantic Versioning](http://semver.org) guidelines.
55

6+
## v1.1.1
7+
### Fixed
8+
* Fixes allocation permissions checking on the frontend checking the wrong permission therefore leading to the item never showing up.
9+
610
## v1.1.0
711
This release **requires** `Wings@1.1.0` in order to work properly due to breaking internal API changes.
812

resources/scripts/components/server/network/AllocationRow.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,10 +89,10 @@ const AllocationRow = ({ allocation }: Props) => {
8989
<span css={tw`bg-green-500 py-1 px-2 rounded text-green-50 text-xs`}>Primary</span>
9090
:
9191
<>
92-
<Can action={'allocations.delete'}>
92+
<Can action={'allocation.delete'}>
9393
<DeleteAllocationButton allocation={allocation.id}/>
9494
</Can>
95-
<Can action={'allocations.update'}>
95+
<Can action={'allocation.update'}>
9696
<Button
9797
isSecondary
9898
size={'xsmall'}

0 commit comments

Comments
 (0)