back buttons

This commit is contained in:
Benjamin Takats
2023-01-27 15:47:18 +01:00
parent e963c70854
commit fa77d15ff5

View File

@@ -17,7 +17,7 @@ class InternArticleView extends Component
'libraries', 'libraries',
]); ]);
if ($this->libraryItem->libraries->where('is_public', false) if ($this->libraryItem->libraries->where('is_public', false)
->count() > 0) { ->count() > 0 && !auth()->check()) {
abort(403, __('Sorry! You are not authorized to perform this action.')); abort(403, __('Sorry! You are not authorized to perform this action.'));
} }
} }