mirror of https://github.com/MISP/MISP
fix: [typo] fixed after crash
parent
72ca06023f
commit
2605b16f37
|
@ -408,7 +408,7 @@ class EventReport extends AppModel
|
|||
return $report;
|
||||
} else {
|
||||
if (in_array('edit', $authorizations) || in_array('delete', $authorizations)) {
|
||||
$checkResult = $user['Role']['perm_site_admin'] || ($report['Event']['orgc_id'] === $user['org_id'])
|
||||
$checkResult = $user['Role']['perm_site_admin'] || ($report['Event']['orgc_id'] === $user['org_id']);
|
||||
if ($checkResult !== true) {
|
||||
if ($throwErrors) {
|
||||
throw new UnauthorizedException($checkResult);
|
||||
|
|
Loading…
Reference in New Issue