diff --git a/app/Controller/EventsController.php b/app/Controller/EventsController.php index 01bd1b2a6..9efeea85a 100755 --- a/app/Controller/EventsController.php +++ b/app/Controller/EventsController.php @@ -930,7 +930,7 @@ class EventsController extends AppController { } if (!$this->_isSiteAdmin()) { $this->Event->read(); - if (!$this->Event->data['Event']['orgc'] == $this->_checkOrg()) { + if ($this->Event->data['Event']['orgc'] != $this->_checkOrg()) { throw new MethodNotAllowedException(); } }