mirror of https://github.com/MISP/MISP
chg: [UI] Show warning when advanced auth keys are not enabled
parent
eadb89eec0
commit
8a00af12ba
|
@ -51,6 +51,7 @@ class AuthKeysController extends AppController
|
|||
return $this->restResponsePayload;
|
||||
}
|
||||
$this->set('title_for_layout', __('Auth Keys'));
|
||||
$this->set('advancedEnabled', !empty(Configure::read('Security.advanced_authkeys')));
|
||||
$this->set('keyUsageEnabled', $keyUsageEnabled);
|
||||
$this->set('menuData', [
|
||||
'menuList' => $this->_isSiteAdmin() ? 'admin' : 'globalActions',
|
||||
|
|
|
@ -1,4 +1,7 @@
|
|||
<?php
|
||||
if (!$advancedEnabled) {
|
||||
echo '<div class="alert">' . __('Advanced auth keys are not enabled.') . '</div>';
|
||||
}
|
||||
echo sprintf('<div%s>', empty($ajax) ? ' class="index"' : '');
|
||||
echo $this->element('genericElements/IndexTable/index_table', [
|
||||
'data' => [
|
||||
|
|
Loading…
Reference in New Issue