Hide teams option when adding access role to a team

This commit is contained in:
mabashian
2021-04-20 17:29:10 -04:00
parent 0ca024c929
commit fe4440f7e9

View File

@@ -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`)}