1
0
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:
AFR
2018-07-15 03:15:40 +07:00
committed by Franz Liedke
parent 9be13cb1cd
commit 034b82f4d4
8 changed files with 17 additions and 8 deletions

View File

@@ -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);