0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-18 02:21:47 -05:00

Add self to list of filtered users for editors

Closes #4412
This commit is contained in:
Matt Enlow 2014-11-16 09:36:37 -07:00
parent 39bf4ed9eb
commit 41bea61d4b

View file

@ -31,7 +31,7 @@ UsersIndexRoute = AuthenticatedRoute.extend(styleBody, PaginationRouteMixin, {
return self.store.filter('user', paginationSettings, function (user) {
if (currentUser.get('isEditor')) {
return user.get('isAuthor');
return user.get('isAuthor') || user === currentUser;
}
return true;
});