mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(core): Throw exception instead of returning it (no-changelog) (#15597)
This commit is contained in:
@@ -493,7 +493,7 @@ export class SourceControlService {
|
||||
|
||||
if (options.direction === 'pull' && !hasGlobalScope(user, 'sourceControl:pull')) {
|
||||
// A pull is only allowed by global admins or owners
|
||||
return new ForbiddenError('You do not have permission to pull from source control');
|
||||
throw new ForbiddenError('You do not have permission to pull from source control');
|
||||
}
|
||||
|
||||
const sourceControlledFiles: SourceControlledFile[] = [];
|
||||
|
||||
Reference in New Issue
Block a user