Change the way of verify permissions