check or permission

This is a very simple script to check if the user is allowed to come here.