fixed bug where delegate couldn't see courses when user.id and userprofile.id of the represented user differ