mirror of https://github.com/MISP/MISP
fix: [attribute index] fix galaxy widget for the attribute index
- notice errors when logged in as a userpull/7842/head
parent
d93a683f15
commit
c7493a5e0d
|
@ -2,13 +2,12 @@
|
|||
|
||||
$attribute = Hash::extract($row, 'Attribute');
|
||||
$event = Hash::extract($row, 'Event');
|
||||
$mayModify = ($isSiteAdmin || ($isAclModify && $event['user_id'] == $me['id'] && $event['orgc_id'] == $me['org_id']) || ($isAclModifyOrg && $event['orgc_id'] == $me['org_id']));
|
||||
|
||||
$mayModify = ($isSiteAdmin || ($isAclModify && $event['user_id'] == $me['id'] && $event['org_id'] == $me['org_id']) || ($isAclModifyOrg && $event['orgc_id'] == $me['org_id']));
|
||||
echo $this->element('galaxyQuickViewNew', array(
|
||||
'mayModify' => $mayModify,
|
||||
'isAclTagger' => $isAclTagger,
|
||||
'data' => (!empty($attribute['Galaxy']) ? $attribute['Galaxy'] : array()),
|
||||
'event' => $event,
|
||||
'event' => ['Event' => $event],
|
||||
'target_id' => $attribute['id'],
|
||||
'target_type' => 'attribute',
|
||||
));
|
||||
|
|
Loading…
Reference in New Issue