fix: [authkey] should only be used in a rest context
- otherwise some weird authentication snafus can happen - as reported by SK-CERTcli-modification-summary
parent
3b215a5ec0
commit
fd6d3466d7
|
@ -99,8 +99,8 @@ class AppController extends Controller
|
||||||
{
|
{
|
||||||
$this->loadModel('Users');
|
$this->loadModel('Users');
|
||||||
$this->Users->checkForNewInstance();
|
$this->Users->checkForNewInstance();
|
||||||
$this->authApiUser();
|
|
||||||
if ($this->ParamHandler->isRest()) {
|
if ($this->ParamHandler->isRest()) {
|
||||||
|
$this->authApiUser();
|
||||||
$this->Security->setConfig('unlockedActions', [$this->request->getParam('action')]);
|
$this->Security->setConfig('unlockedActions', [$this->request->getParam('action')]);
|
||||||
}
|
}
|
||||||
$this->ACL->setPublicInterfaces();
|
$this->ACL->setPublicInterfaces();
|
||||||
|
|
Loading…
Reference in New Issue