Regulations Governing the Security of Rehabilitation Institutions Article 6

In order to maintain the order and safety of the enforcement institution, persons receiving disposition shall have their body, clothing and belongings checked by the enforcement personnel when entering or leaving the premises.If a body check, as described in the preceding paragraph, is to be performed by undressing, it should be done in a sheltered space, and care should be taken to protect the privacy and dignity of the persons receiving disposition.When there are sufficient facts to support a suspicion that, a person receiving disposition is in possession of items that may endanger the order and safety of the institution, the enforcement institution may conduct security inspections on the body and clothing of the person receiving disposition at any time. However, these actions should not exceed the extent necessary.
中文原文 保安處分處所戒護辦法第6條
為維護執行處所秩序及安全,受處分人出入該處所時,應由執行處所人員檢查其身體、衣物及攜帶之物品。
前項檢查身體,如須脫衣檢查時,應於有遮蔽之處所為之,並注意維護受處分人隱私及尊嚴。
執行處所有事實足認受處分人持有危害處所秩序及安全之物品時,得隨時對受處分人之身體及衣物進行安全檢查。
但不得逾必要之程度。

English translation for reference only; the Chinese text prevails. Not legal advice.