Fix create filter permissions check
This commit is contained in:
parent
b0cc5c10c1
commit
0a6448dd76
|
@ -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)) === ($metadata->can_edit())) === ($collection->can_edit());
|
return ( (($this->filter_repository->can_edit($this->filter)) === true) === ($metadata->can_edit()) ) === ($collection->can_edit());
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue