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:
committed by
Franz Liedke
parent
5bd13b0c22
commit
46ef76266a
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user