How to deal with multi roles system

Hi,

I have a system where admin could create many permissions. And not always logged user could see main page. So question is. How to redirect user to site where he can be and this site is different for each user.