Skip to content

Commit

Permalink
Added description in result
Browse files Browse the repository at this point in the history
  • Loading branch information
vinodraut committed Aug 16, 2018
1 parent 574fffb commit cc54a32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/YesAuthority.php
Original file line number Diff line number Diff line change
Expand Up @@ -1169,6 +1169,7 @@ public function getZones($requestForUserId = null, $options = [])
'is_zone' => true,
'dependencies' => array_get($accessZoneContents, 'dependencies'),
'parent' => array_get($accessZoneContents, 'parent'),
'description' => array_get($accessZoneContents, 'description'),
]);

} elseif(($getResult->isAccess() === true) and ($getResult->isPublic() === true) and (array_intersect($this->filterTypes, ['all', 'public']))) {
Expand All @@ -1178,6 +1179,7 @@ public function getZones($requestForUserId = null, $options = [])
'is_zone' => true,
'dependencies' => array_get($accessZoneContents, 'dependencies'),
'parent' => array_get($accessZoneContents, 'parent'),
'description' => array_get($accessZoneContents, 'description'),
]);

} elseif(($getResult->isAccess() === false) and (array_intersect($this->filterTypes, ['all', 'denied']))) {
Expand All @@ -1187,6 +1189,7 @@ public function getZones($requestForUserId = null, $options = [])
'is_zone' => true,
'dependencies' => array_get($accessZoneContents, 'dependencies'),
'parent' => array_get($accessZoneContents, 'parent'),
'description' => array_get($accessZoneContents, 'description'),
]);
}

Expand Down Expand Up @@ -1336,6 +1339,7 @@ protected function performChecks($initialAccess, $accessIdKey, $accessList, $den
'title' => array_get($this->dynamicAccessZones[$accessIdKey], 'title'),
'dependencies' => array_get($this->dynamicAccessZones[$accessIdKey], 'dependencies'),
'parent' => array_get($this->dynamicAccessZones[$accessIdKey], 'parent'),
'description' => array_get($this->dynamicAccessZones[$accessIdKey], 'description'),
];
}

Expand Down Expand Up @@ -1463,6 +1467,7 @@ protected function detailsFormat($isAccess, $accessIdKey, $options = []) {
'is_zone' => ifIsset($options['is_zone'], true),
'dependencies' => ifIsset($options['dependencies'], true, null),
'parent' => ifIsset($options['parent'], true, null),
'description' => ifIsset($options['description'], true, null),
], [
'check_levels' => $this->checkLevels
]);
Expand Down

0 comments on commit cc54a32

Please sign in to comment.