Permalink
Browse files

Do not initialize repo if plugin is not AbstractAccessDriver

  • Loading branch information...
1 parent ce47628 commit de94d18833dbe0536b7949a1db79fc195c18574e @cdujeu cdujeu committed Jun 25, 2016
Showing with 3 additions and 0 deletions.
  1. +3 −0 core/src/core/src/pydio/Core/PluginFramework/PluginsService.php
@@ -226,6 +226,9 @@ private function initRepositoryPlugins($ctx){
$accessType = $repository->getAccessType();
/** @var AbstractAccessDriver $plugInstance */
$plugInstance = $this->getPluginByTypeName("access", $accessType);
+ if(!$plugInstance instanceof AbstractAccessDriver){
+ throw new RepositoryLoadException($repository, "Could not load plugin as an AccessDriver");
+ }
// TRIGGER BEFORE INIT META
$metaSources = $repository->getContextOption($ctx, "META_SOURCES");

0 comments on commit de94d18

Please sign in to comment.