1
0
mirror of https://github.com/flarum/core.git synced 2025-08-04 15:37:51 +02:00

Allow admins to see last online text (#1540)

* Allow admins to see last online text

* Use viewLastSeenAt permission

* Move permission to UserSerializer, removed from ForumSerializer

* Remove extra comma from ForumSerializer to keep diff clean

* Add permission to new seed migration
This commit is contained in:
David Sevilla Martín
2018-09-22 17:55:53 -04:00
committed by Franz Liedke
parent 5bd13b0c22
commit 46ef76266a
3 changed files with 8 additions and 1 deletions

View File

@@ -110,6 +110,12 @@ export default class PermissionGrid extends Component {
})
}, 90);
items.add('viewLastSeenAt', {
icon: 'far fa-clock',
label: app.translator.trans('core.admin.permissions.view_last_seen_at_label'),
permission: 'user.viewLastSeenAt',
});
return items;
}