0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -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 89a2f4d246
commit 19c3a5c023

View file

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