mirror of https://github.com/MISP/MISP
fix: [ACL] Added ACL for the new cache searches
parent
ab858d5f17
commit
dc39255be5
|
@ -177,6 +177,7 @@ class ACLComponent extends Component
|
|||
'index' => array('*'),
|
||||
'previewEvent' => array('*'),
|
||||
'previewIndex' => array('*'),
|
||||
'searchCaches' => array('*'),
|
||||
'toggleSelected' => array('perm_site_admin'),
|
||||
'view' => array('*'),
|
||||
),
|
||||
|
|
|
@ -951,6 +951,9 @@ class FeedsController extends AppController
|
|||
|
||||
public function searchCaches()
|
||||
{
|
||||
if (!$this->_isSiteAdmin() && !$this->Auth->user('org_id') == Configure::read('MISP.host_org_id')) {
|
||||
throw NotAllowedException('You don\'t have access to this feature.');
|
||||
}
|
||||
if (isset($this->passedArgs['pages'])) {
|
||||
$currentPage = $this->passedArgs['pages'];
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue