Who Writes What: Unveiling the Impact of Author Roles on AI-generated Text Detection