mirror of https://github.com/MISP/MISP
Fix to an incorrect check for privileges in the event deletion
parent
a6c2c392d2
commit
7f2df6503e
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue