mirror of
https://github.com/ansible/awx.git
synced 2026-01-10 15:32:07 -03:30
Merge pull request #9965 from mabashian/8835-team-permissions
Hide teams option when adding access role to a team SUMMARY link #8835 ISSUE TYPE Bugfix Pull Request COMPONENT NAME UI Reviewed-by: Jake McDermott <yo@jakemcdermott.me> Reviewed-by: Tiago Góes <tiago.goes2009@gmail.com>
This commit is contained in:
commit
cca3698d19
@ -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`)}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user