* [ADD] Preliminary API implementation. Need doc

* [ADD] API token authentication
* [FIX] Fixed issue on account searches
This commit is contained in:
nuxsmin
2015-08-10 10:20:42 +02:00
parent e7ae7d6154
commit 29873ef313
22 changed files with 1159 additions and 263 deletions

View File

@@ -25,6 +25,7 @@
namespace SP\Controller;
use SP\Session;
use SP\SPException;
defined('APP_ROOT') || die(_('No es posible acceder directamente a este archivo'));
@@ -145,7 +146,7 @@ abstract class Controller
$checkAction = $action;
}
if (!\SP\Acl::checkUserAccess($checkAction)) {
if (!Session::getUserIsAdminApp() && !\SP\Acl::checkUserAccess($checkAction)) {
// $this->showError(self::ERR_PAGE_NO_PERMISSION);
return false;
}