Permalink
Browse files

Password-protected minisites where broken!

  • Loading branch information...
1 parent c40baef commit 202f34da3ad74e93d17ca3d14d811b13549f9dea @cdujeu cdujeu committed Sep 23, 2016
Showing with 5 additions and 1 deletion.
  1. +5 −1 core/src/plugins/action.share/src/View/MinisiteRenderer.php
@@ -30,6 +30,7 @@
use Pydio\Core\Model\ContextInterface;
use Pydio\Core\Services\ConfService;
use Pydio\Core\Controller\Controller;
+use Pydio\Core\Services\RepositoryService;
use Pydio\Core\Utils\ApplicationState;
use Pydio\Core\Utils\Http\UserAgent;
use Pydio\Core\Controller\XMLWriter;
@@ -177,6 +178,9 @@ public static function writeHtml(ResponseInterface $responseInterface, ContextIn
$confs = $shareCenter->getConfigs();
}
$repoObject = $context->getRepository();
+ if($repoObject === null && isSet($data['PRESET_LOGIN']) && isSet($data["REPOSITORY"])){
+ $repoObject = RepositoryService::getRepositoryById($data["REPOSITORY"]);
+ }
$minisiteLogo = "plugins/gui.ajax/PydioLogo250.png";
if(!empty($confs["CUSTOM_MINISITE_LOGO"])){
@@ -202,7 +206,7 @@ public static function writeHtml(ResponseInterface $responseInterface, ContextIn
$templateName = "ajxp_shared_folder";
}
}
- if(!isSet($templateName) && isSet($error)){
+ if(!isSet($templateName) || isSet($error)){
$templateName = "ajxp_unique_strip";
}
// UPDATE TEMPLATE

0 comments on commit 202f34d

Please sign in to comment.