Change the way permissions are checked (This work with client side)