mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
fix(core): Allow undefined workflow owner on source control for retro compatibility (#17419)
This commit is contained in:
committed by
GitHub
parent
a5d14a2509
commit
78cb5b6409
@@ -163,11 +163,14 @@ export class SourceControlImportService {
|
||||
return false;
|
||||
}
|
||||
return (
|
||||
context.hasAccessToAllProjects() || findOwnerProject(remote.owner, accessibleProjects)
|
||||
context.hasAccessToAllProjects() ||
|
||||
(remote.owner && findOwnerProject(remote.owner, accessibleProjects))
|
||||
);
|
||||
})
|
||||
.map((remote) => {
|
||||
const project = findOwnerProject(remote.owner, accessibleProjects);
|
||||
const project = remote.owner
|
||||
? findOwnerProject(remote.owner, accessibleProjects)
|
||||
: undefined;
|
||||
return {
|
||||
id: remote.id,
|
||||
versionId: remote.versionId ?? '',
|
||||
|
||||
Reference in New Issue
Block a user