I modified the remove
function in the users-permissions.user
service by creating a strapi-server.ts file, overriding the original service. It works OK through the api/users
endpoint.
However this change does not affect the user removals when they are performed through the content-manager
of the admin GUI.
The change concerns a simple and reasonable policy that is when the user is deleted, all the user’s posts are also deleted together with the user.
Is there any efficient way not to duplicate code from API to content-manager for the same policy? (I am afraid, but not yet confirmed this, that there would be need for duplication again inside content-manager itself to address both single and bulk deletions)
1 Like
Hi @andreasp I’m also trying to override the content-manager API. If you find the solution, please let me know