mirror of https://github.com/MISP/MISP
Merge pull request #3956 from dawid-czarnecki/fix/disable_correlation
Fix disabling correlations for single attributespull/3960/head
commit
dc0b8c1084
|
@ -3021,7 +3021,7 @@ class AttributesController extends AppController
|
|||
|
||||
public function toggleCorrelation($id)
|
||||
{
|
||||
if (!$this->_isSiteAdmin() && Configure.read('MISP.allow_disabling_correlation')) {
|
||||
if (!$this->_isSiteAdmin() && Configure::read('MISP.allow_disabling_correlation')) {
|
||||
throw new MethodNotAllowedException(__('Disabling the correlation is not permitted on this instance.'));
|
||||
}
|
||||
$this->Attribute->id = $id;
|
||||
|
|
Loading…
Reference in New Issue