mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix: Allow sharee to use workflows with http request node without credential access (#8841)
This commit is contained in:
@@ -373,8 +373,15 @@ export function useNodeHelpers() {
|
||||
node.credentials !== undefined
|
||||
) {
|
||||
const stored = credentialsStore.getCredentialsByType(nodeCredentialType);
|
||||
// Prevents HTTP Request node from being unusable if a sharee does not have direct
|
||||
// access to a credential
|
||||
const isCredentialUsedInWorkflow =
|
||||
workflowsStore.usedCredentials?.[node.credentials?.[nodeCredentialType]?.id as string];
|
||||
|
||||
if (selectedCredsDoNotExist(node, nodeCredentialType, stored)) {
|
||||
if (
|
||||
selectedCredsDoNotExist(node, nodeCredentialType, stored) &&
|
||||
!isCredentialUsedInWorkflow
|
||||
) {
|
||||
const credential = credentialsStore.getCredentialTypeByName(nodeCredentialType);
|
||||
return credential ? reportUnsetCredential(credential) : null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user