fix: [API] fix to a double negation fail in the tagging

nibbler
iglocska 2019-11-29 13:40:22 +01:00
parent 396cd25cb4
commit d9d1b0c9cd
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 2 additions and 2 deletions

View File

@ -876,7 +876,7 @@ class TagsController extends AppController
if (
$scope !== 'view' &&
!$this->_isSiteAdmin() &&
!$object['Event']['orgc_id'] != $this->Auth->user('org_id')
$object['Event']['orgc_id'] != $this->Auth->user('org_id')
) {
$message = __('Cannot alter the tags of this data, only the organisation that has created the data (orgc) can modify global tags.');
if ($this->Auth->user('org_id') === Configure::read('MISP.host_org_id')) {
@ -900,7 +900,7 @@ class TagsController extends AppController
if (
$scope !== 'view' &&
!$this->_isSiteAdmin() &&
!$object['Event']['orgc_id'] != $this->Auth->user('org_id')
$object['Event']['orgc_id'] != $this->Auth->user('org_id')
) {
$message = __('Cannot alter the tags of this data, only the organisation that has created the data (orgc) can modify global tags.');
if ($this->Auth->user('org_id') === Configure::read('MISP.host_org_id')) {