mirror of https://github.com/MISP/MISP
fix: [UI] Warnings when user don't have permission to see sharing group orgs
parent
f1c1d95b1c
commit
716014d5b2
|
@ -50,7 +50,8 @@ echo $this->element(
|
|||
[
|
||||
'key' => __('Organisations'),
|
||||
'type' => 'custom',
|
||||
'function' => function ($sharingGroup) {
|
||||
'requirement' => isset($sg['SharingGroupOrg']),
|
||||
'function' => function (array $sharingGroup) {
|
||||
echo sprintf(
|
||||
'<div class="span6">
|
||||
<table class="table table-striped table-hover table-condensed">
|
||||
|
@ -77,7 +78,8 @@ echo $this->element(
|
|||
[
|
||||
'key' => __('Instances'),
|
||||
'type' => 'custom',
|
||||
'function' => function ($sharingGroup) {
|
||||
'requirement' => isset($sg['SharingGroupServer']),
|
||||
'function' => function (array $sharingGroup) {
|
||||
echo sprintf(
|
||||
'<div class="span6">
|
||||
<table class="table table-striped table-hover table-condensed">
|
||||
|
|
Loading…
Reference in New Issue