Fix for role-based authentication