mirror of
https://github.com/flarum/framework.git
synced 2024-12-11 21:43:38 +08:00
parent
ae57be6e4f
commit
150a9b316d
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user