mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
add dummy teamid (#1968)
This commit is contained in:
@ -111,7 +111,7 @@ export const getDocumentWhereInput = async ({
|
||||
visibility: {
|
||||
in: teamVisibilityFilters,
|
||||
},
|
||||
teamId,
|
||||
teamId: team.id,
|
||||
},
|
||||
// Or, if they are a recipient of the document.
|
||||
{
|
||||
|
||||
@ -141,6 +141,7 @@ export const authenticatedMiddleware = t.middleware(async ({ ctx, next, path })
|
||||
return await next({
|
||||
ctx: {
|
||||
...ctx,
|
||||
teamId: ctx.teamId || -1,
|
||||
logger: trpcSessionLogger,
|
||||
user: ctx.user,
|
||||
session: ctx.session,
|
||||
|
||||
Reference in New Issue
Block a user