Ghost/ghost/admin/app/adapters/user.js
Nazar Gargol 4fcac6d701 Removed redundant 'status=all' in user queries
closes https://github.com/TryGhost/Ghost/issues/5947

- Removed status=all parameter assignment as they are handled on the server side using enforcedFilters/defaultFilters (4acc375fb6/core/server/models/user.js (L293))
2019-01-28 16:28:14 +00:00

15 lines
461 B
JavaScript

import ApplicationAdapter from 'ghost-admin/adapters/application';
import SlugUrl from 'ghost-admin/mixins/slug-url';
export default ApplicationAdapter.extend(SlugUrl, {
queryRecord(store, type, query) {
if (!query || query.id !== 'me') {
return this._super(...arguments);
}
let url = this.buildURL(type.modelName, 'me', null, 'findRecord');
return this.ajax(url, 'GET', {data: {include: 'roles'}});
}
});