Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: improvements
Marc Seitz83663d79c4ea
diff --git a/ee/features/access-notifications/components/blocked-email-attempt.tsx b/ee/features/access-notifications/components/blocked-email-attempt.tsxindex 6c38129a..df726570 100644--- a/ee/features/access-notifications/components/blocked-email-attempt.tsx+++ b/ee/features/access-notifications/components/blocked-email-attempt.tsx@@ -86,14 +86,7 @@ export default function BlockedEmailAttempt({<Hr /><Section className="mt-8 text-gray-400"><Text className="text-xs">- © {new Date().getFullYear()}{" "}- <a- href="https://www.papermark.com"- className="text-gray-400 no-underline hover:text-gray-400"- target="_blank"- >- Papermark, Inc.- </a>+ © {new Date().getFullYear()} Papermark, Inc.</Text><Text className="text-xs">If you have any feedback or questions about this email, simplydiff --git a/ee/features/access-notifications/lib/report-denied-access-attempt.ts b/ee/features/access-notifications/lib/report-denied-access-attempt.tsindex 3a50946f..55f9756b 100644--- a/ee/features/access-notifications/lib/report-denied-access-attempt.ts+++ b/ee/features/access-notifications/lib/report-denied-access-attempt.ts@@ -9,14 +9,14 @@ export async function reportDeniedAccessAttempt(email: string,accessType: "global" | "allow" | "deny" = "global",) {- if (!link) return;+ if (!link || !link.teamId) return;// Get all admin and manager emailsconst users = await prisma.userTeam.findMany({where: {role: { in: ["ADMIN", "MANAGER"] },status: "ACTIVE",- teamId: link.teamId!,+ teamId: link.teamId,},select: {user: { select: { email: true } },@@ -45,7 +45,7 @@ export async function reportDeniedAccessAttempt(where: {userId_teamId: {userId: document.ownerId,- teamId: link.teamId!,+ teamId: link.teamId,},status: "ACTIVE",},