Merge pull request #3956 from dawid-czarnecki/fix/disable_correlation

Fix disabling correlations for single attributes
pull/3960/head
Andras Iklody 2018-12-18 13:49:51 +01:00 committed by GitHub
commit dc0b8c1084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;