Skip to content

Commit

Permalink
Bugfix: with unlocked system, locked folders were not shown in menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Volmarg committed Mar 18, 2020
1 parent 5633740 commit 64c76a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Twig/PageElements/FoldersBasedMenuElements.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ private function buildList(array $folder_tree, string $upload_module_dir, string
}

//prevent rendering the given node if if any parent or the children itself is locked
if( $this->locked_resource_controller->isResourceLocked($folder_path, LockedResource::TYPE_DIRECTORY, $module_name) ){
if( !$this->locked_resource_controller->isAllowedToSeeResource($folder_path, LockedResource::TYPE_DIRECTORY, $module_name, false) ){
return $list;
}

Expand Down

0 comments on commit 64c76a6

Please sign in to comment.