Access control implemented

Implemented if statement to control user access in edit, quiz and
studentlist pages. If no acces go to noid page. Stay on page and show
valuable information if access.