mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 18:21:32 +10:00
fix: wip
This commit is contained in:
@ -36,17 +36,7 @@ export const createHonoTrpcContext = async ({
|
||||
.catch(() => undefined)
|
||||
.parse(rawTeamId);
|
||||
|
||||
if (!session) {
|
||||
return {
|
||||
session: null,
|
||||
user: null,
|
||||
teamId,
|
||||
req,
|
||||
metadata,
|
||||
};
|
||||
}
|
||||
|
||||
if (!user) {
|
||||
if (!session || !user) {
|
||||
return {
|
||||
session: null,
|
||||
user: null,
|
||||
@ -58,7 +48,7 @@ export const createHonoTrpcContext = async ({
|
||||
|
||||
return {
|
||||
session,
|
||||
user, // Todo
|
||||
user,
|
||||
teamId,
|
||||
req,
|
||||
metadata,
|
||||
|
||||
Reference in New Issue
Block a user