mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-29 13:52:10 +03:00
4fcac6d701
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)
)
15 lines
461 B
JavaScript
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'}});
|
|
}
|
|
});
|