mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
fix: Remove workflow execution credential error message when instance owner (#6116)
fix: remove execution credential error message when instance owner
This commit is contained in:
parent
ebb3aaf61e
commit
e81a96483a
|
@ -48,6 +48,7 @@ export const nodeHelpers = defineComponent({
|
||||||
useNodeTypesStore,
|
useNodeTypesStore,
|
||||||
useSettingsStore,
|
useSettingsStore,
|
||||||
useWorkflowsStore,
|
useWorkflowsStore,
|
||||||
|
useUsersStore,
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -355,9 +356,10 @@ export const nodeHelpers = defineComponent({
|
||||||
}
|
}
|
||||||
|
|
||||||
if (nameMatches.length === 0) {
|
if (nameMatches.length === 0) {
|
||||||
|
const isInstanceOwner = this.usersStore.isInstanceOwner;
|
||||||
const isCredentialUsedInWorkflow =
|
const isCredentialUsedInWorkflow =
|
||||||
this.workflowsStore.usedCredentials?.[selectedCredentials.id as string];
|
this.workflowsStore.usedCredentials?.[selectedCredentials.id as string];
|
||||||
if (!isCredentialUsedInWorkflow) {
|
if (!isCredentialUsedInWorkflow && !isInstanceOwner) {
|
||||||
foundIssues[credentialTypeDescription.name] = [
|
foundIssues[credentialTypeDescription.name] = [
|
||||||
this.$locale.baseText('nodeIssues.credentials.doNotExist', {
|
this.$locale.baseText('nodeIssues.credentials.doNotExist', {
|
||||||
interpolate: { name: selectedCredentials.name, type: credentialDisplayName },
|
interpolate: { name: selectedCredentials.name, type: credentialDisplayName },
|
||||||
|
|
Loading…
Reference in a new issue