Peace be upon you. According to Grand Ayatollah Sayyid Sistani, it is required for a girl to obtain the consent of her father or paternal grandfather to marry, unless she is independent in her affairs. In such cases, it is strongly recommended to seek the approval of one of them. Other scholars, including Grand Ayatollah Khamenei, Grand Ayatollah Sheikh Wahid Khorasani, Grand Ayatollah Sheikh Ismail Fayyad, and Grand Ayatollah Sheikh Nasser Makarem Shirazi, also emphasize the necessity of obtaining consent from the father or grandfather for a girl to marry, regardless of whether it is a permanent or temporary marriage. The marriage contract without such consent is considered invalid. For further guidance, you may refer to the official websites of these scholars.