fix: [UI] Warnings when user don't have permission to see sharing group orgs

pull/8613/head
Jakub Onderka 2022-10-07 10:29:33 +02:00
parent f1c1d95b1c
commit 716014d5b2
1 changed files with 4 additions and 2 deletions

View File

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