Safe link opening and stronger permission
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -129,6 +129,7 @@ export function CompliancePageNDASection(props: { fragmentRef: CompliancePageNDA
|
||||
window.open(
|
||||
organization.compliancePage.ndaFileUrl,
|
||||
"_blank",
|
||||
"noopener,noreferrer",
|
||||
);
|
||||
}
|
||||
}}
|
||||
@@ -149,7 +150,7 @@ export function CompliancePageNDASection(props: { fragmentRef: CompliancePageNDA
|
||||
)
|
||||
: (
|
||||
<>
|
||||
{organization.compliancePage?.canUpdate
|
||||
{organization.compliancePage?.canUploadNDA
|
||||
? (
|
||||
<Dropzone
|
||||
description={__("Upload PDF files up to 10MB")}
|
||||
|
||||
Reference in New Issue
Block a user