diff --git a/library/Icinga/Web/Controller/ActionController.php b/library/Icinga/Web/Controller/ActionController.php index 571f0792f..dc7a7e21e 100644 --- a/library/Icinga/Web/Controller/ActionController.php +++ b/library/Icinga/Web/Controller/ActionController.php @@ -152,7 +152,7 @@ class ActionController extends Zend_Controller_Action */ public function assertPermission($permission) { - if (! $this->Auth()->hasPermission($permission)) { + if ($this->requiresAuthentication && ! $this->Auth()->hasPermission($permission)) { throw new SecurityException('No permission for %s', $permission); } }