mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Merge pull request #4463 from novaugust/dont-filter-self#4412
Add self to list of filtered users for editors
This commit is contained in:
commit
02d4b18863
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue