Skip to content
This repository was archived by the owner on Nov 25, 2020. It is now read-only.

Commit fc11e63

Browse files
committed
Fix setting/unsetting watch on shared folder.
Fix notification grouping in alert feed.
1 parent 1d589df commit fc11e63

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

core/src/plugins/action.share/class.ShareCenter.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,7 +1572,7 @@ public function createSharedMinisite($httpVars, $repository, $accessDriver)
15721572
if(isset($existingData)){
15731573
$repo = ConfService::getRepositoryById($existingData["REPOSITORY"]);
15741574
if($repo == null) throw new Exception("Oups, something went wrong");
1575-
$this->shareStore->testUserCanEditShare($repo->getOwner());
1575+
$this->getShareStore()->testUserCanEditShare($repo->getOwner());
15761576
$data = $existingData;
15771577
}else{
15781578
$data = array(
@@ -1828,7 +1828,7 @@ public function createSharedRepository($httpVars, $repository, $accessDriver, $u
18281828
$options["PLUGINS_DATA"] = $customData;
18291829
}
18301830
if (isSet($editingRepo)) {
1831-
$this->shareStore->testUserCanEditShare($editingRepo->getOwner());
1831+
$this->getShareStore()->testUserCanEditShare($editingRepo->getOwner());
18321832
$newRepo = $editingRepo;
18331833
$replace = false;
18341834
if ($editingRepo->getDisplay() != $label) {
@@ -2462,7 +2462,7 @@ public function shareToJson($shareId, $shareData, $node = null){
24622462
"expire_time" => ($pData["EXPIRE_TIME"]!=0?date($messages["date_format"], $pData["EXPIRE_TIME"]):0),
24632463
"has_password" => (!empty($pData["PASSWORD"])),
24642464
"element_watch" => $elementWatch,
2465-
"is_expired" => $this->shareStore->isShareExpired($shareId, $pData)
2465+
"is_expired" => $this->getShareStore()->isShareExpired($shareId, $pData)
24662466
), $shareData);
24672467

24682468

@@ -2518,7 +2518,7 @@ public function shareToJson($shareId, $shareData, $node = null){
25182518
);
25192519
}
25202520
if($node != null){
2521-
$sharedEntries = $this->computeSharedRepositoryAccessRights($repoId, true, $node->getUrl());
2521+
$sharedEntries = $this->computeSharedRepositoryAccessRights($repoId, true, "pydio://".$repoId."/");
25222522
}else{
25232523
$sharedEntries = $this->computeSharedRepositoryAccessRights($repoId, true, null);
25242524
}
@@ -2550,7 +2550,7 @@ public function shareToJson($shareId, $shareData, $node = null){
25502550
}else{
25512551
$jsonData["expire_after"] = 0;
25522552
}
2553-
$jsonData["is_expired"] = $this->shareStore->isShareExpired($shareId, $minisiteData);
2553+
$jsonData["is_expired"] = $this->getShareStore()->isShareExpired($shareId, $minisiteData);
25542554
if(isSet($minisiteData["AJXP_TEMPLATE_NAME"])){
25552555
$jsonData["minisite_layout"] = $minisiteData["AJXP_TEMPLATE_NAME"];
25562556
}

core/src/plugins/core.notifications/class.AJXP_NotificationCenter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ public function loadUserAlerts($actionName, $httpVars, $fileVars)
332332
$parentNodeURL = $node->getScheme()."://".$repositoryFilter.$relative;
333333
$this->logDebug("action.share", "Recompute alert to ".$parentNodeURL);
334334
$node = new AJXP_Node($parentNodeURL);
335+
$path = $node->getPath();
335336
}
336337

337338

0 commit comments

Comments
 (0)