Skip to content

Commit

Permalink
Fix Add/Remove collection ignoring repository object permissions
Browse files Browse the repository at this point in the history
Issue: AAH-2305
  • Loading branch information
himdel committed Apr 14, 2023
1 parent 4aff395 commit 01dd284
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES/2305.bug
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix Add/Remove collection ignoring repository object permissions
2 changes: 2 additions & 0 deletions src/containers/ansible-repository/tab-collection-versions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,8 @@ export const CollectionVersionsTab = ({
setState: setModalState,
query,
hasPermission,
hasObjectPermission: (p: string): boolean =>
item?.my_permissions?.includes?.(p),
}}
defaultPageSize={10}
defaultSort={'name'}
Expand Down

0 comments on commit 01dd284

Please sign in to comment.