doc edit security enhancement