mirror of
https://github.com/flarum/core.git
synced 2025-10-12 15:34:26 +02:00
Create new hidePosts permission (#1466)
This commit is contained in:
@@ -66,7 +66,8 @@ class PostSerializer extends BasicPostSerializer
|
||||
|
||||
$attributes += [
|
||||
'canEdit' => $canEdit,
|
||||
'canDelete' => $gate->allows('delete', $post)
|
||||
'canDelete' => $gate->allows('delete', $post),
|
||||
'canHide' => $gate->allows('hide', $post)
|
||||
];
|
||||
|
||||
return $attributes;
|
||||
|
Reference in New Issue
Block a user