enable checkbox when write permission