star7th 7 years ago
parent
commit
9a99d637be
1 changed files with 1 additions and 1 deletions
  1. 1 1
      server/Application/Api/Controller/CatalogController.class.php

+ 1 - 1
server/Application/Api/Controller/CatalogController.class.php

@@ -210,7 +210,7 @@ class CatalogController extends BaseController {
 
         
         if (!$this->checkItemPermn($login_user['uid'] , $item_id)) {
-            $this->message(L('no_permissions'));
+            $this->sendError(10101,L('no_permissions'));
             return;
         }