Merge pull request #8499 from Ultimaker/CURA-7735_Disable_symlink_following_for_non_debug_mode_in_Trust

CURA-7735: Make symlink following optional when checking the plugin signatures
This commit is contained in:
Remco Burema 2020-10-06 14:47:34 +02:00 committed by GitHub
commit 4ef7851739
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -714,7 +714,7 @@ class CuraApplication(QtApplication):
## Handle loading of all plugin types (and the backend explicitly)
# \sa PluginRegistry
def _loadPlugins(self) -> None:
self._plugin_registry.setCheckIfTrusted(ApplicationMetadata.IsEnterpriseVersion)
self._plugin_registry.setCheckIfTrusted(ApplicationMetadata.IsEnterpriseVersion, ApplicationMetadata.CuraDebugMode)
self._plugin_registry.addType("profile_reader", self._addProfileReader)
self._plugin_registry.addType("profile_writer", self._addProfileWriter)