Fix to an incorrect check for privileges in the event deletion

pull/274/merge
iglocska 2014-06-06 10:45:53 +02:00
parent a6c2c392d2
commit 7f2df6503e
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}
}