diff --git a/library/Icinga/Web/Form.php b/library/Icinga/Web/Form.php index 1c106e017..1b1584ccf 100644 --- a/library/Icinga/Web/Form.php +++ b/library/Icinga/Web/Form.php @@ -951,8 +951,7 @@ class Form extends Zend_Form if (! $this->tokenDisabled) { $request = $this->getRequest(); if (! $request->isXmlHttpRequest() - && ($user = $request->getUser()) !== null - && $user->getIsHttpUser() + && $request->getIsApiRequest() ) { return $this; }