Fixed report display

Fixed an error that was stopping parents from viewing child reports,
caused by checking the user id number instead of the username.
Also corrected permissions to prevent non-parent access students from
viewing reports.