mirror of
https://github.com/nuxsmin/sysPass.git
synced 2026-03-06 16:36:59 +01:00
* [ADD] Preliminary API implementation. Need doc
* [ADD] API token authentication * [FIX] Fixed issue on account searches
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user