Hello, i try to setup a new field named “avatar” (is a media field).
I have already add the code to users-permissions/services/User.js
module.exports = {
async fetchAuthenticatedUser(id) {
return strapi.query('user', 'users-permissions').findOne({ id }, ['role', 'avatar']);
}
};
but it dsn’t work
Have you an idea please ?
This topic has been created from a Discord post (1286770259587629097) to give it more visibility.
It will be on Read-Only mode here.
Join the conversation on Discord