* Fix bug#49773.
This commit is contained in:
@@ -99,7 +99,7 @@ class storyRelatedList extends relatedList
|
||||
'onRender' => function($item, $linkedStory) use($storyProducts, $story, $app)
|
||||
{
|
||||
$storyID = $linkedStory->id;
|
||||
$hasPriv = ($app->user->admin || str_contains(",{$app->user->view->products},", ",{$storyProducts[$story->id]},"));
|
||||
$hasPriv = ($app->user->admin || str_contains(",{$app->user->view->products},", ",{$storyProducts[$storyID]},"));
|
||||
$item['url'] = $hasPriv ? createLink('story', 'view', "storyID=$storyID&version=0¶m=0&storyType=$story->type") : false;
|
||||
if($hasPriv)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user