added security for question page

- access is allowed to the question if:
   - user if prof of course that has exam that has item
   OR
   - student is enrolled in course that has exam that has item AND
results for the exam allow it AND enough time has passed since exam is
released AND student has taken the exam