diff --git a/unotools/source/config/securityoptions.cxx b/unotools/source/config/securityoptions.cxx index 263a32808aec..19fa71b3beba 100644 --- a/unotools/source/config/securityoptions.cxx +++ b/unotools/source/config/securityoptions.cxx @@ -205,7 +205,9 @@ void SetMacroSecurityLevel( sal_Int32 _nLevel ) bool IsMacroDisabled() { - return comphelper::IsFuzzing() || officecfg::Office::Common::Security::Scripting::DisableMacrosExecution::get(); + return comphelper::IsFuzzing() + || officecfg::Office::Common::Security::Scripting::DisableMacrosExecution::get() + || officecfg::Office::Common::Misc::ViewerAppMode::get(); } std::vector< SvtSecurityOptions::Certificate > GetTrustedAuthors()