mirror of
https://github.com/humhub/humhub.git
synced 2025-01-16 21:58:17 +01:00
Fix PermaLink controller error for content without container (#5513)
* Fix PermaLink controller error for content without container * Update CHANGELOG.md Co-authored-by: Lucas Bartholemy <luke-@users.noreply.github.com>
This commit is contained in:
parent
6e831f5428
commit
a282c78b56
@ -5,6 +5,7 @@ HumHub Changelog
|
||||
-------------------
|
||||
- Fix #5480: `el` language file in Admin section broken
|
||||
- Fix #5479: Fix ContentContainerPermissionAccess without provided container
|
||||
- Fix #5513: Fix PermaLink controller error for content without container
|
||||
- Fix #5517: Don't send "Follows" notification on request friendship
|
||||
|
||||
|
||||
|
@ -31,7 +31,7 @@ class PermaController extends Controller
|
||||
{
|
||||
$comment = Comment::findOne(['id' => $id]);
|
||||
|
||||
if (!$comment || !$comment->canRead()) {
|
||||
if (!$comment || !$comment->content || !$comment->canRead() || !$comment->content->container) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user