Restrict professor access to pages