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: {
|
visibility: {
|
||||||
in: teamVisibilityFilters,
|
in: teamVisibilityFilters,
|
||||||
},
|
},
|
||||||
teamId,
|
teamId: team.id,
|
||||||
},
|
},
|
||||||
// Or, if they are a recipient of the document.
|
// 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({
|
return await next({
|
||||||
ctx: {
|
ctx: {
|
||||||
...ctx,
|
...ctx,
|
||||||
|
teamId: ctx.teamId || -1,
|
||||||
logger: trpcSessionLogger,
|
logger: trpcSessionLogger,
|
||||||
user: ctx.user,
|
user: ctx.user,
|
||||||
session: ctx.session,
|
session: ctx.session,
|
||||||
|
|||||||
Reference in New Issue
Block a user