mirror of
https://github.com/flarum/core.git
synced 2025-07-19 07:41:22 +02:00
Fix Permission Name (#965)
This commit is contained in:
@@ -47,7 +47,7 @@ class PostSerializer extends PostBasicSerializer
|
||||
if ($canEdit) {
|
||||
$attributes['content'] = $post->content;
|
||||
}
|
||||
if ($gate->allows('viewPostIps', $post)) {
|
||||
if ($gate->allows('viewIps', $post)) {
|
||||
$attributes['ipAddress'] = $post->ip_address;
|
||||
}
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user