Fixes permission
This commit is contained in:
parent
0a6448dd76
commit
9eea456f74
|
@ -151,7 +151,7 @@ class TAINACAN_REST_Filters_Controller extends TAINACAN_REST_Controller {
|
|||
$collection = $this->collection_repository->fetch($body['collection_id']);
|
||||
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue