What is the ruling regarding obstructions like filler or lote-tree leaves (sidr) in the hair during Ghusl?

Chapter on Ghusl from Janabah (Major Impurity)

Al-Mughni

Book of Purification

Book 2 · Issue 4 · Bab 9

Open in Qurani

Primary text

If the hair contains any filler or lote-tree leaves that prevent water from reaching what is underneath, removing it becomes obligatory. If the material is light and does not prevent water from reaching the underlying skin, its removal is not obligatory.