How to restrict Admin users only to invite users with certain role?

I have three roles in my strapi admin panel. Super-admin, Admin and Manager. Super admin is me. So this is a unique scenario where user with a role of Admin can invite user for a role of Manager.

As a super admin I have created both Admin and Manager role. I don’t want Admin to create any roles but should be able to invite users with role of Manager.

add a custom middleware to the route that creates the invite and just throw an application error in there if it is super admin