Can I tell in the beforeUpdate hook if the update comes from Admin

For the admin you have to be authenticated if you get the full ctx with
const ctx = strapi.requestContext.get();
you can check ctx.state.auth.strategy.name to see what type of authentication is being used.

1 Like