mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 08:39:25 +08:00
parent
c3b2fa5a99
commit
9a0190e13a
@ -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…
x
Reference in New Issue
Block a user