parent
c23c7a5fa9
commit
9aa1599a18
|
@ -951,8 +951,7 @@ class Form extends Zend_Form
|
||||||
if (! $this->tokenDisabled) {
|
if (! $this->tokenDisabled) {
|
||||||
$request = $this->getRequest();
|
$request = $this->getRequest();
|
||||||
if (! $request->isXmlHttpRequest()
|
if (! $request->isXmlHttpRequest()
|
||||||
&& ($user = $request->getUser()) !== null
|
&& $request->getIsApiRequest()
|
||||||
&& $user->getIsHttpUser()
|
|
||||||
) {
|
) {
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue