Can a voluntary mental healthcare patient have their room searched without consent?

i am a voluntary patient in scotland and last night i told them i had something in my room i could hurt myself with, after they asked if they could search my room and i said no but they did it anyway? is this a breach of some sort of human right thing seeing i’m not on section or was this perfectly legal
8 answers 8