Change the permission in the code