@DMehaffy alright I followed the documentation and found a really nice tutorials as well.
The policy works very well for a post command. I have tried it in postman. Now I want that GraphQL use the policy as well. I read the following documentation GraphQL - Strapi Developer Documentation
Here is my code
// extensions/users-permissions/config/schema.graphql.js
module.exports = {
resolver: {
Mutation: {
updateUser: {
description: 'Update an existing user',
policies: ['plugins::users-permissions.userUpdate'],
},
},
},
};
The description is working but the policy just get ignored. (Strapi 3.5.2)
Also tried to change ‘plugins::users-permissions.userUpdate’ to ‘userUpdate’ but nothing happend.
What I do wrong?