diff --git a/framework/core/src/Core/Posts/PostsServiceProvider.php b/framework/core/src/Core/Posts/PostsServiceProvider.php index 3cf5d456d..c48e5c2bd 100644 --- a/framework/core/src/Core/Posts/PostsServiceProvider.php +++ b/framework/core/src/Core/Posts/PostsServiceProvider.php @@ -34,7 +34,7 @@ class PostsServiceProvider extends ServiceProvider $actor = $event->actor; if ($action === 'view' && - (! $post->hide_user_id || $post->can($actor, 'edit'))) { + (! $post->hide_user_id || $post->hide_user_id == $actor->id || $post->can($actor, 'edit'))) { return true; }