Update PPost.php
This commit is contained in:
parent
d5dd1ca61c
commit
0e3b288b7f
1 changed files with 1 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue