Fixes permission

This commit is contained in:
weryques 2018-01-31 11:20:48 -02:00
parent 0a6448dd76
commit 9eea456f74
1 changed files with 1 additions and 1 deletions

View File

@ -151,7 +151,7 @@ class TAINACAN_REST_Filters_Controller extends TAINACAN_REST_Controller {
$collection = $this->collection_repository->fetch($body['collection_id']); $collection = $this->collection_repository->fetch($body['collection_id']);
if(($metadata instanceof Entities\Metadata) && ($collection instanceof Entities\Collection)) { if(($metadata instanceof Entities\Metadata) && ($collection instanceof Entities\Collection)) {
return ( (($this->filter_repository->can_edit($this->filter)) === true) === ($metadata->can_edit()) ) === ($collection->can_edit()); return $this->filter_repository->can_edit($this->filter) && $metadata->can_edit() && $collection->can_edit();
} }
return false; return false;