Check if user is allowed to come on a page

This is a very simple code to check if the user is allowed to come on this page. I don't know if it's safe.



-Z3r0byte