change permissions on hooks