1
0
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:
Davis
2016-05-26 09:54:25 -05:00
committed by Franz Liedke
parent b322cf669a
commit f0f668fb93
2 changed files with 3 additions and 3 deletions

View File

@@ -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 {