Fix Permission Name (#965)

This commit is contained in:
Davis 2016-05-26 09:54:25 -05:00 committed by Franz Liedke
parent 7d448e81ff
commit 6061f404f9
2 changed files with 3 additions and 3 deletions

View File

@ -173,10 +173,10 @@ export default class PermissionGrid extends Component {
moderateItems() {
const items = new ItemList();
items.add('viewPostIps', {
items.add('viewIpsPosts', {
icon: 'bullseye',
label: app.translator.trans('core.admin.permissions.view_post_ips_label'),
permission: 'discussion.viewPostIps'
permission: 'discussion.viewIpsPosts'
}, 110);
items.add('renameDiscussions', {

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 {