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

Commit

Permalink
Empty mask filtering on meta.syncable can create an issue with sync d…
Browse files Browse the repository at this point in the history
…ownloads.
  • Loading branch information
cdujeu committed May 3, 2016
1 parent c046cb3 commit 18635db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/plugins/meta.syncable/class.ChangesTracker.php
Expand Up @@ -195,6 +195,9 @@ public function switchActions($actionName, $httpVars, $fileVars)
$masks = array();
$currentRepo = $this->accessDriver->repository;
AJXP_Controller::applyHook("role.masks", array($currentRepo->getId(), &$masks, AJXP_Permission::READ));
if(count($masks) == 1 && $masks[0] == "/"){
$masks = array();
}
$recycle = $currentRepo->getOption("RECYCLE_BIN");
$recycle = (!empty($recycle)?$recycle:false);

Expand Down

0 comments on commit 18635db

Please sign in to comment.