mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
feat: add initials field type (#1279)
Adds a new field type that enables document recipients to add their `initials` on the document.
This commit is contained in:
@ -414,7 +414,7 @@ export const documentRouter = router({
|
||||
teamId,
|
||||
}).catch(() => null);
|
||||
|
||||
if (!document || document.teamId !== teamId) {
|
||||
if (!document || (teamId && document.teamId !== teamId)) {
|
||||
throw new TRPCError({
|
||||
code: 'FORBIDDEN',
|
||||
message: 'You do not have access to this document.',
|
||||
|
||||
Reference in New Issue
Block a user