Moved guest check so as to not assume that unauthenticated user will not have permissions #52