Skip to content

Commit

Permalink
Fix some users not being able to link to assets
Browse files Browse the repository at this point in the history
  • Loading branch information
engram-design committed Apr 19, 2023
1 parent 81ff5c9 commit 00aeecd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fields/VizyField.php
Original file line number Diff line number Diff line change
Expand Up @@ -1128,7 +1128,7 @@ private function _getVolumeKeys(): array
foreach ($allVolumes as $volume) {
$allowedBySettings = $this->availableVolumes === '*' || (is_array($this->availableVolumes) && in_array($volume->uid, $this->availableVolumes));

if ($allowedBySettings && ($this->showUnpermittedVolumes || $userService->checkPermission("viewVolume:$volume->uid"))) {
if ($allowedBySettings && ($this->showUnpermittedVolumes || $userService->checkPermission("viewAssets:$volume->uid"))) {
$allowedVolumes[] = 'volume:' . $volume->uid;
}
}
Expand Down

0 comments on commit 00aeecd

Please sign in to comment.