Skip to content

Commit

Permalink
Merge pull request #1484 from chalettu/sui-permissions-cleanup
Browse files Browse the repository at this point in the history
BZ# 1642623 - Fix permission related display issues

(cherry picked from commit 04236db)

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1649419
  • Loading branch information
AllenBW authored and simaishi committed Nov 13, 2018
1 parent dc0fb73 commit dcec439
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,9 @@ function ComponentController ($state, $stateParams, VmsService, lodash, EventNot
}
]
snapshotOptionsActions.forEach((menuOption) => menuOption.permission ? snapshotOptionsMenu.actions.push(menuOption) : null)
vm.snapshotListActions = [snapshotOptionsMenu]
if (snapshotOptionsMenu.actions.length) {
vm.snapshotListActions = [snapshotOptionsMenu]
}

return vm.snapshotListActions
}
Expand Down
2 changes: 1 addition & 1 deletion client/app/states/catalogs/explorer/explorer.state.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ function getStates (RBAC) {
controllerAs: 'vm',
title: __('Catalogs'),
data: {
authorization: RBAC.hasAny(['svc_catalog_provision'])
authorization: RBAC.hasAny(['svc_catalog_provision', 'sui_svc_catalog_view'])
}
}
}
Expand Down

0 comments on commit dcec439

Please sign in to comment.