set protection of object in repository