mirror of
https://github.com/ansible/awx.git
synced 2026-02-26 15:36:04 -03:30
Hide teams option when adding access role to a team
This commit is contained in:
@@ -203,7 +203,9 @@ function AddResourceRole({ onSave, onClose, roles, i18n, resource, onError }) {
|
||||
dataCy="add-role-users"
|
||||
onClick={() => handleResourceSelect('users')}
|
||||
/>
|
||||
{resource?.type === 'credential' && !resource?.organization ? null : (
|
||||
{resource?.type === 'team' ||
|
||||
(resource?.type === 'credential' &&
|
||||
!resource?.organization) ? null : (
|
||||
<SelectableCard
|
||||
isSelected={selectedResource === 'teams'}
|
||||
label={i18n._(t`Teams`)}
|
||||
|
||||
Reference in New Issue
Block a user