mirror of https://github.com/MISP/MISP
flag incorrectly set for event edit's publishing right check
parent
e11ddb9679
commit
5f8f22e272
|
@ -854,7 +854,7 @@ class ServersController extends AppController {
|
|||
else return new CakeResponse(array('body'=> json_encode(array('saved' => false, 'errors' => 'Could not kill the previous instance of the ZeroMQ script.')),'status'=>200));
|
||||
}
|
||||
|
||||
private function statusZeroMQServer() {
|
||||
public function statusZeroMQServer() {
|
||||
if (!$this->_isSiteAdmin()) throw new MethodNotAllowedException();
|
||||
App::uses('PubSubTool', 'Tools');
|
||||
$pubSubTool = new PubSubTool();
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
$mayModify = (($isAclModify && $event['Event']['user_id'] == $me['id'] && $event['Event']['orgc_id'] == $me['org_id']) || ($isAclModifyOrg && $event['Event']['orgc_id'] == $me['org_id']));
|
||||
$mayPublish = ($isAclPublish && $event['Event']['orgc'] == $me['Organisation']['name']);
|
||||
$mayPublish = ($isAclPublish && $event['Event']['orgc_id'] == $me['orgc_id']);
|
||||
?>
|
||||
<div class="events form">
|
||||
<?php echo $this->Form->create('Event');?>
|
||||
|
|
Loading…
Reference in New Issue