ServiceAccounts: Lock role picker for external service accounts (#79727)

This commit is contained in:
Gabriel MABILLE 2023-12-20 10:16:33 +01:00 committed by GitHub
parent 5fd5a8e385
commit e7bc913dfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ export const ServiceAccountRoleRow = ({ label, serviceAccount, roleOptions, onRo
onBasicRoleChange={onRoleChange}
roleOptions={roleOptions}
basicRoleDisabled={!canUpdateRole}
disabled={serviceAccount.isDisabled}
disabled={serviceAccount.isExternal || serviceAccount.isDisabled}
/>
</td>
) : (

View File

@ -83,7 +83,7 @@ const ServiceAccountListItemComponent = memo(
onBasicRoleChange={(newRole) => onRoleChange(newRole, serviceAccount)}
roleOptions={roleOptions}
basicRoleDisabled={!canUpdateRole}
disabled={serviceAccount.isDisabled}
disabled={serviceAccount.isExternal || serviceAccount.isDisabled}
width={40}
/>
)}