Update PPost.php

This commit is contained in:
Visman 2021-11-14 22:24:40 +07:00
parent d5dd1ca61c
commit 0e3b288b7f

View file

@ -196,9 +196,7 @@ class PPost extends DataModel
*/
protected function getcanBlock(): bool
{
return $this->poster_id !== $this->c->user->id
&& ! $this->user->isAdmin
&& ! $this->user->isGuest;
return $this->c->pms->block->canBlock($this->user);
}
/**