[HELP] Building a project based on existing structure

You can see:

You can expand model controller and write :
const { user} = ctx.state.user
And you can checks rights for current user next in your code