Shiel off function si not working after android update

Hy i use an Huawei P10 Lite Model WAS LX1A and since the last android update the shield off function is not working anymore so every body could switch of my phone .
all othe functions are working
Please what is wrog