* optimize code.

This commit is contained in:
liuruogu
2026-01-09 03:04:24 +00:00
parent 918c5c4eb5
commit 84bd916840
+1 -1
View File
@@ -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)