def is_player_admin(group, player):
    """
    Determines if a player is an admin in a group or not.

    :param group: Thr group object to check
    :param player: The player object to check against
    :return: A boolean value
    """
    admins = group.admins.all()
    for admin in admins:
        if player.user.username == admin.user.username:
            return True
    return False