mirror of https://github.com/MISP/MISP
Merge branch '2.4' of github.com:MISP/MISP into 2.4
commit
a12acdde6a
|
@ -47,6 +47,7 @@ class AppController extends Controller {
|
|||
public $helpers = array('Utility');
|
||||
|
||||
private $__jsVersion = '2.4.58';
|
||||
public $pyMispVersion = '2.4.56';
|
||||
public $phpmin = '5.5.9';
|
||||
public $phprec = '5.6.0';
|
||||
|
||||
|
|
|
@ -235,6 +235,7 @@ class ACLComponent extends Component {
|
|||
'edit' => array(),
|
||||
'fetchServersForSG' => array('*'),
|
||||
'filterEventIndex' => array(),
|
||||
'getPyMISPVersion' => array('*'),
|
||||
'getVersion' => array('*'),
|
||||
'index' => array('OR' => array('perm_sync', 'perm_admin')),
|
||||
'previewEvent' => array(),
|
||||
|
|
|
@ -1155,4 +1155,9 @@ class ServersController extends AppController {
|
|||
$this->set('response', array('version' => $versionArray['major'] . '.' . $versionArray['minor'] . '.' . $versionArray['hotfix'], 'perm_sync' => $this->userRole['perm_sync']));
|
||||
$this->set('_serialize', 'response');
|
||||
}
|
||||
|
||||
public function getPyMISPVersion() {
|
||||
$this->set('response', array('version' => $this->pyMispVersion));
|
||||
$this->set('_serialize', 'response');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -2729,7 +2729,6 @@ function checkAndSetPublishedInfo() {
|
|||
$('.published').removeClass('hidden');
|
||||
$('.not-published').addClass('hidden');
|
||||
} else {
|
||||
alert(1);
|
||||
$('.published').addClass('hidden');
|
||||
$('.not-published').removeClass('hidden');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue