Skip to content

Commit

Permalink
Fix Add/Remove collection ignoring repository object permissions (#3602)
Browse files Browse the repository at this point in the history
Issue: AAH-2305
(cherry picked from commit 02c7968)
  • Loading branch information
himdel authored and patchback[bot] committed Apr 14, 2023
1 parent 655a2de commit 39c0bdf
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 39c0bdf

Please sign in to comment.