added role checking for teacher home page
Merge remote-tracking branch 'download/master'