Fix sentry nuxt and custom domain redirect

This commit is contained in:
Julien Nahum
2024-01-12 17:32:10 +01:00
parent b29cdf8d8a
commit be43c5cae3
4 changed files with 14 additions and 18 deletions

View File

@@ -28,7 +28,7 @@ class CustomDomainRestriction
'success' => false,
'message' => 'Invalid domain',
'error' => 'invalid_domain',
], 401);
], 420);
}
// Check if domain is different from current domain
@@ -43,7 +43,7 @@ class CustomDomainRestriction
'success' => false,
'message' => 'Unknown domain',
'error' => 'invalid_domain',
], 400);
], 420);
}
Workspace::addGlobalScope('domain-restricted', function (Builder $builder) use ($workspace) {