mirror of
https://github.com/flarum/core.git
synced 2025-10-13 16:05:05 +02:00
Create new hidePosts permission (#1466)
This commit is contained in:
@@ -68,7 +68,7 @@ class EditPostHandler
|
||||
}
|
||||
|
||||
if (isset($attributes['isHidden'])) {
|
||||
$this->assertCan($actor, 'edit', $post);
|
||||
$this->assertCan($actor, 'hide', $post);
|
||||
|
||||
if ($attributes['isHidden']) {
|
||||
$post->hide($actor);
|
||||
|
Reference in New Issue
Block a user