update permissions check on cpwrap for 11.38