diff --git a/framework/api/router.class.php b/framework/api/router.class.php index f6dbf4464c..44a7cc2d8d 100644 --- a/framework/api/router.class.php +++ b/framework/api/router.class.php @@ -402,7 +402,7 @@ class api extends router */ public function checkObjectPriv(object $object, string $table): bool { - if($this->user->admin) true; + if($this->user->admin) return true; $userView = $this->user->view; switch($table)